muses

package module
v0.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

README

*** just fork from github.com/i2eco/muses fixed by windows. more info please see: https://github.com/i2eco/muses

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MUSES_DEBUG = false
)

Functions

This section is empty.

Types

type ConfCaller

type ConfCaller struct {
	common.Caller
}

type Muses

type Muses struct {
	// contains filtered or unexported fields
}

func Container

func Container(callerFuncs ...common.CallerFunc) (muses *Muses)

注册相应组件

func (*Muses) Run

func (m *Muses) Run() (err error)

func (*Muses) SetCfg

func (m *Muses) SetCfg(cfg interface{}) *Muses

设置配置

func (*Muses) SetGinRouter

func (m *Muses) SetGinRouter(router func() *ogin.Engine) *Muses

设置gin路由

func (*Muses) SetPostRun

func (m *Muses) SetPostRun(f ...common.PostRunFunc) *Muses

在container之后运行

func (*Muses) SetPreRun

func (m *Muses) SetPreRun(f ...common.PreRunFunc) *Muses

在container之前运行

func (*Muses) SetRootCommand

func (m *Muses) SetRootCommand(f func(cobraCommand *cobra.Command))

func (*Muses) SetStartCommand

func (m *Muses) SetStartCommand(f func(cobraCommand *cobra.Command))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL