Documentation ¶
Index ¶
- func ContextualizeConfig(ctx context.Context, fb *config.Config) *config.Config
- func ContextualizeMiddleware(ctx context.Context) func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func ContextualizeNID(ctx context.Context, fallback uuid.UUID) uuid.UUID
- func ContextualizeTableName(ctx context.Context, name string) string
- type Contextualizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextualizeConfig ¶
func ContextualizeMiddleware ¶
func ContextualizeMiddleware(ctx context.Context) func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Types ¶
type Contextualizer ¶
type Contextualizer interface { ContextualizeTableName(ctx context.Context, name string) string ContextualizeMiddleware(ctx context.Context) func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) ContextualizeConfig(ctx context.Context, fb *config.Config) *config.Config ContextualizeNID(ctx context.Context, fallback uuid.UUID) uuid.UUID }
var DefaultContextualizer Contextualizer = noopContextualizer{}
Click to show internal directories.
Click to hide internal directories.