dispatcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ProviderGlobalCfg

func ProviderGlobalCfg(cfg config.Configurator) (*glbConfig.Config, func(), error)

ProviderGlobalCfg

func ProviderServices

func ProviderServices(globalCfg *glbConfig.Config, srv *micro.Micro) common.Services

ProviderServices

Types

type AppSet

type AppSet struct {
	Handlers common.Handlers
	Services common.Services
}

AppSet

type Config

type Config struct {
	Debug         bool `fallback:"shared.debug"`
	WorkDir       string
	PathRouteDump string
	// contains filtered or unexported fields
}

Config

func ProviderCfg

func ProviderCfg(cfg config.Configurator) (*Config, func(), error)

ProviderCfg

func (*Config) OnReload

func (c *Config) OnReload(callback func(ctx context.Context))

OnReload

func (*Config) Reload

func (c *Config) Reload(ctx context.Context)

Reload

type Dispatcher

type Dispatcher struct {
	provider.LMT
	// contains filtered or unexported fields
}

Dispatcher

func New

func New(ctx context.Context, set provider.AwareSet, appSet AppSet, cfg *Config, globalCfg *glbConfig.Config) *Dispatcher

New

func ProviderDispatcher

func ProviderDispatcher(ctx context.Context, set provider.AwareSet, appSet AppSet, cfg *Config, globalCfg *glbConfig.Config) (*Dispatcher, func(), error)

ProviderDispatcher

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(echoHttp *echo.Echo) error

dispatch

func (*Dispatcher) RecoverMiddleware

func (d *Dispatcher) RecoverMiddleware() echo.MiddlewareFunc

RecoverMiddleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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