interceptors

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package interceptors provides the interceptors for RPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInterceptor added in v0.3.5

type AuthInterceptor struct {
	// contains filtered or unexported fields
}

AuthInterceptor is an interceptor for authentication.

func NewAuthInterceptor added in v0.3.5

func NewAuthInterceptor(be *backend.Backend, tokenManager *auth.TokenManager) *AuthInterceptor

NewAuthInterceptor creates a new instance of AuthInterceptor.

func (*AuthInterceptor) Stream added in v0.3.5

Stream creates a stream server interceptor for authentication.

func (*AuthInterceptor) Unary added in v0.3.5

Unary creates a unary server interceptor for authentication.

type ContextInterceptor

type ContextInterceptor struct {
	// contains filtered or unexported fields
}

ContextInterceptor is an interceptor for building additional context.

func NewContextInterceptor

func NewContextInterceptor(be *backend.Backend) *ContextInterceptor

NewContextInterceptor creates a new instance of ContextInterceptor.

func (*ContextInterceptor) Stream

Stream creates a stream server interceptor for building additional context.

func (*ContextInterceptor) Unary

Unary creates a unary server interceptor for building additional context.

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