Documentation
¶
Index ¶
- func AuditFrom(ctx context.Context) (string, bool)
- func EndpointFrom(ctx context.Context) (internalApi.Endpoint, bool)
- func SessionFrom(ctx context.Context) (string, bool)
- func TokenFrom(ctx context.Context) (string, bool)
- func UserFrom(ctx context.Context) (user.Info, bool)
- func WithAudit(parent context.Context, audit string) context.Context
- func WithEndpoint(parent context.Context, endpoint internalApi.Endpoint) context.Context
- func WithSession(parent context.Context, sessionId string) context.Context
- func WithToken(parent context.Context, token string) context.Context
- func WithUser(parent context.Context, user user.Info) context.Context
- func WithValue(parent context.Context, key, val interface{}) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndpointFrom ¶
func EndpointFrom(ctx context.Context) (internalApi.Endpoint, bool)
func UserFrom ¶
UserFrom function to retrieve user from context. If there is no user in context, it returns false
func WithEndpoint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.