Documentation ¶
Index ¶
- Variables
- type Muses
- func (m *Muses) Run() (err error)
- func (m *Muses) SetCfg(cfg interface{}) *Muses
- func (m *Muses) SetGinRouter(router func() *ogin.Engine) *Muses
- func (m *Muses) SetPostRun(f ...common.PostRunFunc) *Muses
- func (m *Muses) SetPreRun(f ...common.PreRunFunc) *Muses
- func (m *Muses) SetRootCommand(f func(cobraCommand *cobra.Command))
- func (m *Muses) SetStartCommand(f func(cobraCommand *cobra.Command))
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MUSES_DEBUG = false
)
Functions ¶
This section is empty.
Types ¶
type Muses ¶
type Muses struct {
// contains filtered or unexported fields
}
func (*Muses) SetGinRouter ¶
设置gin路由
func (*Muses) SetPostRun ¶
func (m *Muses) SetPostRun(f ...common.PostRunFunc) *Muses
在container之后运行
func (*Muses) SetRootCommand ¶
func (*Muses) SetStartCommand ¶
Directories ¶
Path | Synopsis |
---|---|
example
|
|
pkg
|
|
server/gin/plugins/ginzap
Package ginzap provides log handling using zap package.
|
Package ginzap provides log handling using zap package. |
Click to show internal directories.
Click to hide internal directories.