Documentation ¶
Index ¶
- func WithConfigValue(ctx context.Context, key string, value any) context.Context
- func WithConfigValues(ctx context.Context, setValues ...map[string]any) context.Context
- type AutoContextClient
- type ConfigurableTestHandler
- func (t *ConfigurableTestHandler) RegisterConfig(config ...map[string]any) uuid.UUID
- func (t *ConfigurableTestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (t *ConfigurableTestHandler) UseConfig(r *http.Request, id uuid.UUID) *http.Request
- func (t *ConfigurableTestHandler) UseConfigValues(r *http.Request, values ...map[string]any) *http.Request
- type ConfigurableTestServer
- type TestConfigProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfigValue ¶
Types ¶
type AutoContextClient ¶
type ConfigurableTestHandler ¶
type ConfigurableTestHandler struct {
// contains filtered or unexported fields
}
func NewConfigurableTestHandler ¶
func NewConfigurableTestHandler(h http.Handler) *ConfigurableTestHandler
func (*ConfigurableTestHandler) RegisterConfig ¶
func (t *ConfigurableTestHandler) RegisterConfig(config ...map[string]any) uuid.UUID
func (*ConfigurableTestHandler) ServeHTTP ¶
func (t *ConfigurableTestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ConfigurableTestHandler) UseConfigValues ¶
type ConfigurableTestServer ¶
func NewConfigurableTestServer ¶
func NewConfigurableTestServer(h http.Handler) *ConfigurableTestServer
func (*ConfigurableTestServer) Client ¶
func (t *ConfigurableTestServer) Client(ctx context.Context) *AutoContextClient
type TestConfigProvider ¶
type TestConfigProvider struct { contextx.Contextualizer Options []configx.OptionModifier }
func (*TestConfigProvider) NewProvider ¶
func (t *TestConfigProvider) NewProvider(ctx context.Context, opts ...configx.OptionModifier) (*configx.Provider, error)
Click to show internal directories.
Click to hide internal directories.