application

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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) AddServices added in v0.26.0

func (rt *Runtime) AddServices(svcs []*services.Service)

func (*Runtime) Exit

func (rt *Runtime) Exit(code int)

func (*Runtime) ExitCh

func (rt *Runtime) ExitCh() <-chan ShutDown

ExitCh return blocking channel that will reveive a signal when the runtime exits

func (*Runtime) InitStats

func (rt *Runtime) InitStats(startedAt time.Time, took time.Duration)

func (*Runtime) SetAddonManager

func (rt *Runtime) SetAddonManager(addonm *addon.Manager)

func (*Runtime) SetBrand

func (rt *Runtime) SetBrand(b *branding.Brand)

func (*Runtime) SetLogger

func (rt *Runtime) SetLogger(l logging.Logger)

func (*Runtime) SetMain

func (rt *Runtime) SetMain(cmd *command.Cmd)

func (*Runtime) SetMainTick

func (rt *Runtime) SetMainTick(a action.Tick)

func (*Runtime) SetMainTock

func (rt *Runtime) SetMainTock(a action.Tock)

func (*Runtime) SetSession

func (rt *Runtime) SetSession(sess *session.Context)

func (*Runtime) SetSessionReady

func (rt *Runtime) SetSessionReady(ch chan events.Event, e events.Event)

func (*Runtime) SetSetup

func (rt *Runtime) SetSetup(setup action.Action)

func (*Runtime) Start

func (rt *Runtime) Start()

func (*Runtime) WidthBeforeAlways

func (rt *Runtime) WidthBeforeAlways(a action.WithArgs) error

func (*Runtime) WithExitFunc

func (rt *Runtime) WithExitFunc(exitFunc func(sess *session.Context, code int) error)

type ShutDown

type ShutDown struct{}

Jump to

Keyboard shortcuts

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