Documentation ¶
Index ¶
- Constants
- func GetUserContextFrom(ctx context.Context, secret string, uc *any) error
- func LoggerInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func UserContextInterceptor(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- type UserContextKey
Constants ¶
View Source
const (
TokeKey = "token"
)
Variables ¶
This section is empty.
Functions ¶
func GetUserContextFrom ¶ added in v1.0.8
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
Click to show internal directories.
Click to hide internal directories.