Documentation ¶
Index ¶
- Variables
- func GetNamespace(ctx context.Context) (string, error)
- func IsAdminApi(fullMethodName string) bool
- func SetAccessToken(ctx context.Context, token *AccessToken) context.Context
- func SetNamespace(ctx context.Context, namespace string) context.Context
- type AccessToken
- type AccessTokenNamespaceExtractor
- type NamespaceExtractor
- type RequestMetadata
- type RequestMetadataCtxKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNamespaceNotFound = api.Errorf(api.Code_NOT_FOUND, "namespace not found")
Functions ¶
func IsAdminApi ¶
func SetAccessToken ¶
func SetAccessToken(ctx context.Context, token *AccessToken) context.Context
Types ¶
type AccessToken ¶
func GetAccessToken ¶
func GetAccessToken(ctx context.Context) (*AccessToken, error)
type AccessTokenNamespaceExtractor ¶
type AccessTokenNamespaceExtractor struct { }
type NamespaceExtractor ¶
NamespaceExtractor - extract the namespace from context
type RequestMetadata ¶
type RequestMetadata struct {
// contains filtered or unexported fields
}
func GetRequestMetadata ¶
func GetRequestMetadata(ctx context.Context) (*RequestMetadata, error)
type RequestMetadataCtxKey ¶
type RequestMetadataCtxKey struct { }
Click to show internal directories.
Click to hide internal directories.