Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnaryUserContextInterceptor ¶
func UnaryUserContextInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, reader auth.GrpcContextReader) (interface{}, error)
UnaryUserContextInterceptor assumes that there is a user in the context if there is no user, it will return an auth error. if there is a user, it will be written to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.