Documentation ¶
Index ¶
- Constants
- Variables
- func AppCmd() *_CmdApplication
- func AppWeb() *_ApplicationWeb
- type AppConfig
- type CmdFunc
- type CmdRouter
- type Component
- type Crontab
- type DBConnConfig
- type LoggerCommon
- type LoggerInterface
- type LoggerToNull
- type Node
- type PassiveCache
- func (c *PassiveCache) Delete(name string) error
- func (c *PassiveCache) Get(name string) (interface{}, error)
- func (c *PassiveCache) GetAndStore(name string, duration time.Duration, handle TickerCacheLoad) (interface{}, error)
- func (c *PassiveCache) Init()
- func (c *PassiveCache) Run()
- func (c *PassiveCache) Stop()
- type Task
- type Ticker
- type TickerCacheLoad
- type WebConfig
- type WebRouter
- type WebService
Constants ¶
View Source
const ( LogLevelInfo = iota LogLevelWarn LogLevelError )
Variables ¶
View Source
var (
AppCmdNoFind = errors.New(" Command No Find")
)
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
// contains filtered or unexported fields
}
func (*AppConfig) GetExecDir ¶
func (*AppConfig) GetVersion ¶
type CmdRouter ¶
type CmdRouter struct {
// contains filtered or unexported fields
}
func (*CmdRouter) AddCmdHandle ¶
func (*CmdRouter) AddComponent ¶
func (*CmdRouter) Init ¶
func (r *CmdRouter) Init(cfg *AppConfig) LoggerInterface
type Component ¶
type Component interface { CliFlags() []cli.Flag ParseConfig(LoggerInterface, *AppConfig, *cli.Context) error Run(LoggerInterface) error Close(LoggerInterface) error }
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
func (*Crontab) RemoveTask ¶
type DBConnConfig ¶ added in v1.0.3
type LoggerCommon ¶
type LoggerCommon struct { LoggerInterface // contains filtered or unexported fields }
func (*LoggerCommon) Error ¶
func (output *LoggerCommon) Error(format string, v ...interface{})
func (*LoggerCommon) Info ¶
func (output *LoggerCommon) Info(format string, v ...interface{})
func (*LoggerCommon) Init ¶
func (output *LoggerCommon) Init(level int, colorful bool, normal, err io.Writer)
func (*LoggerCommon) Warn ¶
func (output *LoggerCommon) Warn(format string, v ...interface{})
type LoggerInterface ¶
type LoggerToNull ¶
type LoggerToNull struct {
LoggerInterface
}
********************* toNull
func (*LoggerToNull) Debug ¶
func (output *LoggerToNull) Debug(format string, v ...interface{})
func (*LoggerToNull) Error ¶
func (output *LoggerToNull) Error(format string, v ...interface{})
func (*LoggerToNull) Info ¶
func (output *LoggerToNull) Info(format string, v ...interface{})
func (*LoggerToNull) Warn ¶
func (output *LoggerToNull) Warn(format string, v ...interface{})
type Node ¶
type Node interface { Name() string Run(time.Time) ExecuteAt() time.Time SetExecuteAt(time.Time) Idx() int SetIdx(int) Duration() time.Duration Valid() bool SetRemove() ResetValid(time.Time) OnRemove() OnClose() }
***** Node
type PassiveCache ¶
type PassiveCache struct {
// contains filtered or unexported fields
}
**** PassiveCache
func (*PassiveCache) Delete ¶
func (c *PassiveCache) Delete(name string) error
func (*PassiveCache) Get ¶
func (c *PassiveCache) Get(name string) (interface{}, error)
func (*PassiveCache) GetAndStore ¶
func (c *PassiveCache) GetAndStore(name string, duration time.Duration, handle TickerCacheLoad) (interface{}, error)
func (*PassiveCache) Init ¶
func (c *PassiveCache) Init()
func (*PassiveCache) Run ¶
func (c *PassiveCache) Run()
func (*PassiveCache) Stop ¶
func (c *PassiveCache) Stop()
type TickerCacheLoad ¶
type TickerCacheLoad func() (interface{}, error)
type WebService ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.