grpc

package
v0.6.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthorizationMetadataKey is the key for the authorization metadata
	AuthorizationMetadataKey = "authorization"

	// BearerPrefix is the prefix for the bearer token
	BearerPrefix = "Bearer"

	// CtxTokenClaimsKey is the key for the JWT context claims
	CtxTokenClaimsKey = "jwt_claims"
)

Variables

View Source
var (
	InternalServerError = status.Error(
		codes.Internal,
		"internal server error",
	)
	ServiceUnavailable                    = errors.New("service unavailable")
	Unauthenticated                       = errors.New("unauthenticated")
	Unauthorized                          = errors.New("unauthorized")
	AuthorizationMetadataInvalidError     = errors.New("authorization metadata invalid")
	AuthorizationMetadataNotProvidedError = status.Error(
		codes.Unauthenticated, "authorization metadata is not provided",
	)
)

Functions

This section is empty.

Types

type AuthorizationIdx

type AuthorizationIdx int
const (
	TokenIdx AuthorizationIdx = iota
)

func (AuthorizationIdx) Int

func (i AuthorizationIdx) Int() int

Int returns the integer value of the index

Directories

Path Synopsis
client
server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL