interceptors

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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

Stream creates a stream server interceptor for authorization.

func (*AuthInterceptor) Unary

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

Stream creates a stream server interceptor for default.

func (*DefaultInterceptor) Unary

Unary creates a unary server interceptor for default.

Jump to

Keyboard shortcuts

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