Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor is an interceptor for authentication.
func NewAuthInterceptor ¶
func NewAuthInterceptor(webhook string) *AuthInterceptor
NewAuthInterceptor creates a new instance of AuthInterceptor.
func (*AuthInterceptor) Stream ¶
func (i *AuthInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates a stream server interceptor for authorization.
func (*AuthInterceptor) Unary ¶
func (i *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a unary server interceptor for authorization.
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.
type LoggingInterceptor ¶ added in v0.2.3
type LoggingInterceptor struct {
// contains filtered or unexported fields
}
LoggingInterceptor is an interceptor for request logging.
func NewLoggingInterceptor ¶ added in v0.2.3
func NewLoggingInterceptor() *LoggingInterceptor
NewLoggingInterceptor creates a new instance of LoggingInterceptor.
func (*LoggingInterceptor) Stream ¶ added in v0.2.3
func (i *LoggingInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates a stream server interceptor for request logging.
func (*LoggingInterceptor) Unary ¶ added in v0.2.3
func (i *LoggingInterceptor) Unary() grpc.UnaryServerInterceptor
Unary creates a unary server interceptor for request logging.