framework

package
v0.0.0-...-668d2f7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHttpPort = 8888
	DefaultRpcPort  = 9999

	HandlerComponent = "HANDLER"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	ID() string
	Configure(Service, *cli.Context) error
	DependsOn() []string
	Flags() []cli.Flag
	Initialize(*sync.WaitGroup, chan<- struct{}, <-chan struct{}, chan<- error)
	Logger() *zerolog.Logger
}

type Service

type Service interface {
	AddComponent(Component, ...string) error
	Bootstrap()
	Component(string) (Component, error)
	DebugMode() bool
	Handler() Component
	Logger() *zerolog.Logger
	Name() string
	Shutdown()
}

func Create

func Create(name, version, build string, handler Component) (Service, error)

Directories

Path Synopsis
component

Jump to

Keyboard shortcuts

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