rpc

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokeKey = "token"
)

Variables

This section is empty.

Functions

func GetUserContextFrom added in v1.0.8

func GetUserContextFrom(ctx context.Context, secret string, uc *any) error

func LoggerInterceptor

func LoggerInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

func UserContextInterceptor added in v1.0.8

func UserContextInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Types

type UserContextKey added in v1.0.8

type UserContextKey string

func NewUserContextKey added in v1.0.8

func NewUserContextKey() UserContextKey

Jump to

Keyboard shortcuts

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