Documentation ¶
Index ¶
- func GetFormatRunTime() string
- func GetRunTime() int64
- func StartTime() int64
- func StartTimestamp() string
- type App
- func (a *App) Flag(name string, def any, t Type, comment string)
- func (a *App) Get(name string) (*Flag, error)
- func (a *App) Name() string
- func (a *App) Pid() int
- func (a *App) PidString() string
- func (a *App) Run() error
- func (a *App) SetDebugLevel(t debug.DebugType)
- func (a *App) SetServ(serv ServInterface)
- type AppInterface
- type Flag
- type ServBase
- type ServInterface
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFormatRunTime ¶ added in v0.0.6
func GetFormatRunTime() string
func GetRunTime ¶ added in v0.0.6
func GetRunTime() int64
func StartTimestamp ¶ added in v0.0.6
func StartTimestamp() string
Types ¶
type App ¶
type App struct { Action func(AppInterface) error Reload func(AppInterface) error Stop func(AppInterface) error Panic func(AppInterface) Show func(*gui.Table) PidFile func(AppInterface) string // contains filtered or unexported fields }
func (*App) SetDebugLevel ¶ added in v0.0.8
func (*App) SetServ ¶ added in v1.0.4
func (a *App) SetServ(serv ServInterface)
type AppInterface ¶ added in v1.0.6
type ServBase ¶ added in v1.0.6
type ServBase struct { }
func (*ServBase) Flag ¶ added in v1.0.6
func (s *ServBase) Flag(AppInterface) error
func (*ServBase) Panic ¶ added in v1.0.9
func (s *ServBase) Panic(a AppInterface)
func (*ServBase) Reload ¶ added in v1.0.6
func (s *ServBase) Reload(AppInterface) error
type ServInterface ¶ added in v1.0.4
type ServInterface interface { Flag(AppInterface) error Init(AppInterface) error Run(AppInterface) error Shutdown(AppInterface) error Reload(AppInterface) error Panic(AppInterface) }
Click to show internal directories.
Click to hide internal directories.