app

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Initialize Status = "Initialize"
	Starting          = "Starting"
	Running           = "Running"
	Stopping          = "Stopping"
	Online            = "Online"
	Offline           = "Offline"
	Unkonwn           = "Unkonwn"
)

Variables

This section is empty.

Functions

func GetConfigProtocols

func GetConfigProtocols() []string

func GetFns

func GetFns(status Status) []func(ctx context.Context) error

func RegisterPlugin

func RegisterPlugin(status Status, fns ...func(ctx context.Context) error)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) Init

func (app *App) Init(fns ...func() error) error

func (*App) Shutdown

func (app *App) Shutdown() (err error)

func (*App) Start

func (app *App) Start(fns ...func() error) error

type Status

type Status string

Jump to

Keyboard shortcuts

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