Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientHeaderAccessKey = "client-id" ClientHeaderSecretKey = "client-secret" )
Variables ¶
This section is empty.
Functions ¶
func NewAuthStreamServerInterceptor ¶
func NewAuthStreamServerInterceptor() grpc.StreamServerInterceptor
func NewAuthUnaryServerInterceptor ¶
func NewAuthUnaryServerInterceptor() grpc.UnaryServerInterceptor
func NewClientCredential ¶
Types ¶
type GrpcAuther ¶
type GrpcAuther struct{}
func (*GrpcAuther) StreamServerInterceptor ¶
func (a *GrpcAuther) StreamServerInterceptor( srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
stream rpc interceptor
func (*GrpcAuther) UnaryServerInterceptor ¶
func (a *GrpcAuther) UnaryServerInterceptor( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) ( resp interface{}, err error)
request-response interceptor
Click to show internal directories.
Click to hide internal directories.