grpcauth

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenerFromCtx

func ListenerFromCtx(ctx context.Context) int64

func ListenerToCtx

func ListenerToCtx(ctx context.Context, id int64) context.Context

func OperatorFromCtx

func OperatorFromCtx(ctx context.Context) string

func OperatorToCtx

func OperatorToCtx(ctx context.Context, username string) context.Context

func StreamServerInterceptorListener

func StreamServerInterceptorListener(db *ent.ListenerClient) grpc.StreamServerInterceptor

StreamServerInterceptorListener returns stream interceptor to handle listener's GRPC authentication

func StreamServerInterceptorManagement

func StreamServerInterceptorManagement(token string) grpc.StreamServerInterceptor

StreamServerInterceptorManagement returns stream interceptor to handle management's GRPC authentication

func StreamServerInterceptorOperator

func StreamServerInterceptorOperator(db *ent.OperatorClient) grpc.StreamServerInterceptor

StreamServerInterceptorOperator returns stream interceptor to handle operator's GRPC authentication

func UnaryServerInterceptorListener

func UnaryServerInterceptorListener(db *ent.ListenerClient) grpc.UnaryServerInterceptor

UnaryServerInterceptorListener returns unary interceptor to handle listener's GRPC authentication

func UnaryServerInterceptorManagement

func UnaryServerInterceptorManagement(token string) grpc.UnaryServerInterceptor

UnaryServerInterceptorManagement returns stream interceptor to handle management's GRPC authentication

func UnaryServerInterceptorOperator

func UnaryServerInterceptorOperator(db *ent.OperatorClient) grpc.UnaryServerInterceptor

UnaryServerInterceptorOperator returns unary interceptor to handle operator's GRPC authentication

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳