Documentation ¶
Index ¶
- func FromContext(ctx context.Context, name string) interface{}
- func RegisterConfigCreator(name string, creator Creator)
- func WithConfig(ctx context.Context, name string, cfg interface{}) context.Context
- func WithJSONConfig(ctx context.Context, data []byte) (context.Context, error)
- func WithYAMLConfig(ctx context.Context, data []byte) (context.Context, error)
- type Creator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext extracts config from a context
func RegisterConfigCreator ¶
RegisterConfigCreator registers a config struct for parsing
func WithConfig ¶
func WithJSONConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.