auth

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthorizationKey = "authorization"
)

Variables

View Source
var (
	ErrInvalidMiddlewareName   = errors.New("invalid or empty auth middleware name")
	ErrMiddlewareAlreadyExists = errors.New("auth middleware already exists")
	ErrNilMiddleware           = errors.New("auth middleware is nil")
	ErrMiddlewareNotFound      = errors.New("auth middleware not found")
)

Functions

This section is empty.

Types

type HTTPMiddleware added in v0.5.4

type HTTPMiddleware interface {
	Handle(*gin.Context)
}

type Middleware

type Middleware any

type Protocol added in v0.5.4

type Protocol uint32
const (
	ProtocolHTTP Protocol = 1 << iota
	ProtocolUnaryGRPC
	ProtocolStreamGRPC
)

func SupportedProtocols added in v0.5.4

func SupportedProtocols(mw Middleware) Protocol

type StreamGRPCMiddleware added in v0.5.4

type StreamGRPCMiddleware interface {
	StreamServerInterceptor() grpc.StreamServerInterceptor
}

type UnaryGRPCMiddleware added in v0.5.4

type UnaryGRPCMiddleware interface {
	UnaryServerInterceptor() grpc.UnaryClientInterceptor
}

Directories

Path Synopsis
v1
v2
Package session implements session attributes for stream connections.
Package session implements session attributes for stream connections.

Jump to

Keyboard shortcuts

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