Documentation ¶
Index ¶
- Variables
- func ProviderGlobalCfg(cfg config.Configurator) (*common.Config, func(), error)
- func ProviderServices(srv *micro.Micro, cfg *micro.Config) common.Services
- func ProviderValidators(v *validators.ValidatorSet) (validate *validator.Validate, _ func(), err error)
- type AppSet
- type Config
- type Dispatcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Dependencies: go-shared/provider.AwareSet, internal/*validators.ValidatorSet, pkg/micro.Micro, go-shared/config.Configurator, ProviderHandlers WireSet = wire.NewSet( ProviderDispatcher, ProviderServices, ProviderValidators, ProviderCfg, ProviderGlobalCfg, wire.Struct(new(AppSet), "*"), ) // Dependencies: go-shared/provider.AwareSet, internal/*validators.ValidatorSet, common.Services, common.Handlers, go-shared/config.Configurator WireTestSet = wire.NewSet( ProviderDispatcher, ProviderValidators, ProviderCfg, ProviderGlobalCfg, wire.Struct(new(AppSet), "*"), ) )
Functions ¶
func ProviderGlobalCfg ¶
func ProviderGlobalCfg(cfg config.Configurator) (*common.Config, func(), error)
ProviderGlobalCfg
func ProviderServices ¶
ProviderServices
func ProviderValidators ¶
func ProviderValidators(v *validators.ValidatorSet) (validate *validator.Validate, _ func(), err error)
ProviderValidators
Types ¶
type Config ¶
type Config struct { Debug bool `fallback:"shared.debug"` WorkDir string PathRouteDump string // contains filtered or unexported fields }
Config
type Dispatcher ¶
Dispatcher
func New ¶
func New(ctx context.Context, set provider.AwareSet, appSet AppSet, cfg *Config, globalCfg *common.Config, ms *micro.Micro) *Dispatcher
New
func ProviderDispatcher ¶
func ProviderDispatcher(ctx context.Context, set provider.AwareSet, appSet AppSet, cfg *Config, globalCfg *common.Config, ms *micro.Micro) (*Dispatcher, func(), error)
ProviderDispatcher
func (*Dispatcher) BodyDumpMiddleware ¶
func (d *Dispatcher) BodyDumpMiddleware() echo.MiddlewareFunc
BodyDumpMiddleware
func (*Dispatcher) RawBodyPreMiddleware ¶
func (d *Dispatcher) RawBodyPreMiddleware(next echo.HandlerFunc) echo.HandlerFunc
RawBodyPreMiddleware
func (*Dispatcher) RecoverMiddleware ¶
func (d *Dispatcher) RecoverMiddleware() echo.MiddlewareFunc
RecoverMiddleware
Click to show internal directories.
Click to hide internal directories.