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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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