Documentation ¶
Index ¶
- func ExceptionResp(ctx *gin.Context, resp errorx.ErrCode)
- func InternalResp(ctx *gin.Context, err *errorx.Error)
- func Successful(ctx *gin.Context, data interface{})
- type CronInter
- type Gofk
- func (gk *Gofk) Attach(opts ...grpc.ServerOption) *Gofk
- func (g *Gofk) Cron(cron string, expr interface{}) *Gofk
- func (g *Gofk) GetGroup() *gin.RouterGroup
- func (g *Gofk) Group(path string) *gin.RouterGroup
- func (g *Gofk) Launch()
- func (g *Gofk) LoadWatch(conf *gofkConf.Config) *Gofk
- func (g *Gofk) Mount(classes ...GofkCase) *Gofk
- func (g *Gofk) PProf(path string)
- func (gk *Gofk) Register(servers ...zrpc.RpcRegisterInter) *Gofk
- func (gk *Gofk) Start() *Gofk
- func (gk *Gofk) Stop()
- func (g *Gofk) WireApply(beans ...interface{}) *Gofk
- type GofkCase
- type PluginManager
- type Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Successful ¶
Types ¶
type CronInter ¶
type CronInter interface { Get() *cron.Cron Close() }
func NewCronTask ¶
func NewCronTask() CronInter
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func Plugin ¶
func Plugin(conf *gofkConf.Config) *PluginManager
func (*PluginManager) Attach ¶
func (p *PluginManager) Attach(opts ...plugin.OptionFunc) *PluginManager
func (*PluginManager) Mount ¶
func (p *PluginManager) Mount(access ...plugin.PluginItem) *PluginManager
func (*PluginManager) Run ¶
func (p *PluginManager) Run()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.