Documentation
¶
Index ¶
- Variables
- func APITokenFromContext(ctx context.Context) string
- func ContextWithAPIToken(ctx context.Context, token string) context.Context
- func ContextWithAPITokenFromConfig(ctx context.Context) context.Context
- func ContextWithAPITokenFromHeader(ctx context.Context, req *http.Request) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthorized = errors.New("resource not found")
Functions ¶
func APITokenFromContext ¶
func ContextWithAPIToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.