idgrpc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityHandler

type IdentityHandler struct{}

IdentityHandler is a grpc interceptor for identity. Be careful, server interceptor call will conflict with grpc JWT interceptor because they call the same context setter method `security.WithContext`, but this only pass identity id.

func (IdentityHandler) StreamClientInterceptor

func (h IdentityHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor

func (IdentityHandler) StreamServerInterceptor

func (h IdentityHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor

func (IdentityHandler) UnaryClientInterceptor

func (h IdentityHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor

func (IdentityHandler) UnaryServerInterceptor

func (h IdentityHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor

type TenantHandler

type TenantHandler struct{}

TenantHandler is a grpc interceptor for tenant id.

func (TenantHandler) StreamClientInterceptor

func (h TenantHandler) StreamClientInterceptor(cfg *conf.Configuration) grpc.StreamClientInterceptor

func (TenantHandler) StreamServerInterceptor

func (h TenantHandler) StreamServerInterceptor(cfg *conf.Configuration) grpc.StreamServerInterceptor

func (TenantHandler) UnaryClientInterceptor

func (h TenantHandler) UnaryClientInterceptor(cfg *conf.Configuration) grpc.UnaryClientInterceptor

func (TenantHandler) UnaryServerInterceptor

func (h TenantHandler) UnaryServerInterceptor(cfg *conf.Configuration) grpc.UnaryServerInterceptor

Jump to

Keyboard shortcuts

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