Documentation ¶
Overview ¶
Package interceptors provides interceptors for Admin server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶ added in v0.2.14
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor is an interceptor for authentication.
func NewAuthInterceptor ¶ added in v0.2.14
func NewAuthInterceptor(be *backend.Backend, tokenManager *auth.TokenManager) *AuthInterceptor
NewAuthInterceptor creates a new instance of AuthInterceptor.
func (*AuthInterceptor) Stream ¶ added in v0.2.14
func (i *AuthInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates a stream server interceptor for authentication.
func (*AuthInterceptor) Unary ¶ added in v0.2.14
func (i *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a unary server interceptor for authentication.
type DefaultInterceptor ¶
type DefaultInterceptor struct{}
DefaultInterceptor is a interceptor for default.
func NewDefaultInterceptor ¶
func NewDefaultInterceptor() *DefaultInterceptor
NewDefaultInterceptor creates a new instance of DefaultInterceptor.
func (*DefaultInterceptor) Stream ¶
func (i *DefaultInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates a stream server interceptor for default.
func (*DefaultInterceptor) Unary ¶
func (i *DefaultInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a unary server interceptor for default.
Click to show internal directories.
Click to hide internal directories.