Documentation ¶
Index ¶
Constants ¶
const AuthorizerTypeProperty = "authorizerType"
AuthorizerTypeProperty is the property where the id of an Authorizer should be placed in its custom MarshalJSON function
const Redacted = "REDACTED"
Variables ¶
This section is empty.
Functions ¶
func AuthorizerFromInterface ¶
func AuthorizerFromInterface[T Authorizer](f any, authSelectFn AuthorizerSelectorFn[T]) (T, error)
AuthorizerFromInterface this generic function provides Authorizer unmarshalling for all providers
Types ¶
type Authorizer ¶
type AuthorizerSelectorFn ¶
type AuthorizerSelectorFn[T Authorizer] func(string) (T, error)
AuthorizerSelectorFn implementations of this function should be a simple switch and acts as a register for the Authorizer types, returned Authorizer should be empty except for its default type property and will have other values marshalled into it
type Config ¶
Config allows for nested configurations which encapsulate their functionality to be validated and compared easily
type KeyedConfig ¶
KeyedConfig is a top level Config which uses its public values as a unique identifier allowing duplicates to be identified
type KeyedConfigWatcher ¶
type KeyedConfigWatcher interface {
GetConfigs() []KeyedConfig
}