Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HeaderAsertoSessionID = CtxKey(textproto.CanonicalMIMEHeaderKey("Aserto-Session-Id")) HeaderAsertoSessionIDLowercase = CtxKey(strings.ToLower(string(HeaderAsertoSessionID))) )
View Source
var (
ErrMissingHeader = errors.New("missing required header")
)
Functions ¶
func CheckSessionID ¶
CheckSessionID returns an error if the id doesn't look like an session ID.
func ContextWithSessionID ¶
func ExtractSessionID ¶
ExtractSessionID extracts a session id from a context.
Types ¶
type HeaderMiddleware ¶
type HeaderMiddleware struct {
DisableValidation bool
}
func (*HeaderMiddleware) Stream ¶
func (m *HeaderMiddleware) Stream() grpc.StreamServerInterceptor
func (*HeaderMiddleware) Unary ¶
func (m *HeaderMiddleware) Unary() grpc.UnaryServerInterceptor
Click to show internal directories.
Click to hide internal directories.