Documentation ¶
Index ¶
- func FromContext(ctx context.Context, name string) any
- func RegisterConfigCreator(name string, creator Creator)
- func WithConfig(ctx context.Context, name string, cfg any) 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 WithJSONConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.