Documentation ¶
Overview ¶
Package loader provides an injectable config loading mechanism.
Index ¶
- type Loader
- type Option
- func RegisterAccounter(t config.AccounterType, a accounterFactory) Option
- func RegisterAuthenticator(t config.AuthenticatorType, a authenticatorFactory) Option
- func RegisterHandlerType(t config.HandlerType, h handlerFactory) Option
- func RegisterSecretProviderType(t config.ProviderType, sp secretProviderFactory) Option
- func SetAuthorizerProvider(a authorizerFactory) Option
- func SetConfigProvider(c providerFactory) Option
- func SetKeychainProvider(k keychainProvider) Option
- func SetLoggerProvider(log loggerProvider) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader will load in the config provided by loader.
func NewLocalConfig ¶
func NewLocalConfig(ctx context.Context, path string, ll localloader, opts ...Option) (*Loader, error)
NewLocalConfig will create a new Loader that will take loader provided config and turn it into actionable server config types
func (Loader) BlockUntilLoaded ¶
func (l Loader) BlockUntilLoaded()
BlockUntilLoaded will block until we are warmed up with parsed config
type Option ¶
type Option func(l *Loader)
Option ...
func RegisterAccounter ¶
func RegisterAccounter(t config.AccounterType, a accounterFactory) Option
RegisterAccounter ...
func RegisterAuthenticator ¶
func RegisterAuthenticator(t config.AuthenticatorType, a authenticatorFactory) Option
RegisterAuthenticator ...
func RegisterHandlerType ¶
func RegisterHandlerType(t config.HandlerType, h handlerFactory) Option
RegisterHandlerType ...
func RegisterSecretProviderType ¶
func RegisterSecretProviderType(t config.ProviderType, sp secretProviderFactory) Option
RegisterSecretProviderType ...
func SetAuthorizerProvider ¶
func SetAuthorizerProvider(a authorizerFactory) Option
SetAuthorizerProvider ...
func SetKeychainProvider ¶
func SetKeychainProvider(k keychainProvider) Option
SetKeychainProvider ..
func SetLoggerProvider ¶
func SetLoggerProvider(log loggerProvider) Option
SetLoggerProvider will set a logger to use
Click to show internal directories.
Click to hide internal directories.