Documentation
¶
Index ¶
- func ListenerFromCtx(ctx context.Context) int64
- func ListenerToCtx(ctx context.Context, id int64) context.Context
- func OperatorFromCtx(ctx context.Context) string
- func OperatorToCtx(ctx context.Context, username string) context.Context
- func StreamServerInterceptorListener(db *ent.ListenerClient) grpc.StreamServerInterceptor
- func StreamServerInterceptorManagement(token string) grpc.StreamServerInterceptor
- func StreamServerInterceptorOperator(db *ent.OperatorClient) grpc.StreamServerInterceptor
- func UnaryServerInterceptorListener(db *ent.ListenerClient) grpc.UnaryServerInterceptor
- func UnaryServerInterceptorManagement(token string) grpc.UnaryServerInterceptor
- func UnaryServerInterceptorOperator(db *ent.OperatorClient) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenerFromCtx ¶
func OperatorFromCtx ¶
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.
Click to show internal directories.
Click to hide internal directories.