Documentation ¶
Index ¶
- type Config
- type HandlerConfig
- type HandlerLibrary
- func (r *HandlerLibrary) DefaultAuth() auth.Filter
- func (r *HandlerLibrary) DefaultDecorator() decoration.Decorator
- func (r *HandlerLibrary) DefaultEndorsement() endorsement.PluginFactory
- func (r *HandlerLibrary) DefaultValidation() validation.PluginFactory
- func (r *HandlerLibrary) ExpirationCheck() auth.Filter
- type HandlerType
- type PluginMapping
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AuthFilters []*HandlerConfig `mapstructure:"authFilters" yaml:"authFilters"` Decorators []*HandlerConfig `mapstructure:"decorators" yaml:"decorators"` Endorsers PluginMapping `mapstructure:"endorsers" yaml:"endorsers"` Validators PluginMapping `mapstructure:"validators" yaml:"validators"` }
func LoadConfig ¶
type HandlerConfig ¶
type HandlerLibrary ¶
type HandlerLibrary struct { }
func (*HandlerLibrary) DefaultAuth ¶
func (r *HandlerLibrary) DefaultAuth() auth.Filter
func (*HandlerLibrary) DefaultDecorator ¶
func (r *HandlerLibrary) DefaultDecorator() decoration.Decorator
func (*HandlerLibrary) DefaultEndorsement ¶
func (r *HandlerLibrary) DefaultEndorsement() endorsement.PluginFactory
func (*HandlerLibrary) DefaultValidation ¶
func (r *HandlerLibrary) DefaultValidation() validation.PluginFactory
func (*HandlerLibrary) ExpirationCheck ¶
func (r *HandlerLibrary) ExpirationCheck() auth.Filter
type HandlerType ¶
type HandlerType int
const ( Auth HandlerType = iota Decoration Endorsement Validation )
type PluginMapping ¶
type PluginMapping map[string]*HandlerConfig
Click to show internal directories.
Click to hide internal directories.