bootstrap

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(ec EngineContext) *Engine

func (*Engine) GracefulStop

func (eng *Engine) GracefulStop(ctx context.Context) (err error)

func (*Engine) Serve

func (eng *Engine) Serve() (err error)

func (*Engine) SetRegistry

func (eng *Engine) SetRegistry(reg registry.Registry)

func (*Engine) SetSignalHooker

func (eng *Engine) SetSignalHooker(hook func(signal.App))

func (*Engine) Startup

func (eng *Engine) Startup(fns ...func() error) (err error)

func (*Engine) Stop

func (eng *Engine) Stop() (err error)

type EngineContext

type EngineContext interface {
	GetServers() []api.Server
	GetRegistry() registry.Registry
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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