Documentation
¶
Index ¶
- Constants
- type Agent
- type Context
- func (ctx Context) Action() convAuth.Action
- func (ctx Context) Agent() Agent
- func (ctx Context) Claims() (claims convAuth.Claims)
- func (ctx Context) Environment() Environment
- func (ctx Context) Exit(errPtr *error)
- func (ctx Context) IsProdEnv() bool
- func (ctx Context) LogError(v any)
- func (ctx Context) LogErrorf(format string, a ...any)
- func (ctx Context) LogInfo(v any)
- func (ctx Context) LogInfof(format string, a ...any)
- func (ctx Context) LogTrace(w http.ResponseWriter, r *http.Request, ...)
- func (ctx Context) LogWarn(v any)
- func (ctx Context) LogWarnf(format string, a ...any)
- func (ctx Context) Now() time.Time
- func (ctx Context) Request() (r *http.Request)
- func (ctx Context) Scope() string
- func (ctx Context) User() auth.User
- func (ctx Context) WithAgentClaims() Context
- func (ctx Context) WithClaims(claims convAuth.Claims) Context
- func (ctx Context) WithRequest(r *http.Request) (res Context)
- func (ctx Context) WithScope(scope string) Context
- func (ctx Context) WithScopef(format string, a ...any) Context
- func (ctx Context) Workflow() Workflow
- type Environment
- type Workflow
Constants ¶
View Source
const ( HttpHeaderAuthorization = convAuth.HttpHeaderAuthorization HttpHeaderWorkflow = "Workflow" HTTPHeaderTimeNow = "Time-Now" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (Context) Environment ¶
func (ctx Context) Environment() Environment
func (Context) Exit ¶
Indicate the current context exits and wrapped eventual error with the current scope
func (Context) LogTrace ¶
func (ctx Context) LogTrace(w http.ResponseWriter, r *http.Request, handle func(w http.ResponseWriter, r *http.Request))
func (Context) WithAgentClaims ¶
type Environment ¶
type Environment string
const (
EnvironmentProduction Environment = "production"
)
Click to show internal directories.
Click to hide internal directories.