Documentation ¶
Index ¶
- Variables
- type Runtime
- func (rt *Runtime) AddService(svc *services.Service)
- func (rt *Runtime) Exit(code int)
- func (rt *Runtime) ExitCh() <-chan ShutDown
- func (rt *Runtime) InitStats(startedAt time.Time, took time.Duration)
- func (rt *Runtime) SetAddonManager(addonm *addon.Manager)
- func (rt *Runtime) SetBrand(b *branding.Brand)
- func (rt *Runtime) SetLogger(l logging.Logger)
- func (rt *Runtime) SetMain(cmd *command.Cmd)
- func (rt *Runtime) SetMainTick(a action.Tick)
- func (rt *Runtime) SetMainTock(a action.Tock)
- func (rt *Runtime) SetSession(sess *session.Context)
- func (rt *Runtime) SetSessionReady(ch chan events.Event, e events.Event)
- func (rt *Runtime) SetSetup(setup action.Action)
- func (rt *Runtime) Start()
- func (rt *Runtime) WidthBeforeAlways(a action.WithArgs) error
- func (rt *Runtime) WithExitFunc(exitFunc func(sess *session.Context, code int) error)
- type ShutDown
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error = errors.New("runtime error") ErrExitSuccess = errors.New("exit success") )
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) AddService ¶
func (*Runtime) ExitCh ¶
ExitCh return blocking channel that will reveive a signal when the runtime exits
func (*Runtime) SetAddonManager ¶
func (*Runtime) SetMainTick ¶
func (*Runtime) SetMainTock ¶
func (*Runtime) SetSession ¶
func (*Runtime) SetSessionReady ¶
Click to show internal directories.
Click to hide internal directories.