Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPCountryFromContext ¶
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor intercepts gRPC requests to ensure user authentication and authorization
func New ¶
func New(jwtManager *auth.JWTManager, authorizer UserAuthorizer) *Interceptor
New returns a new Interceptor
func (*Interceptor) SetMinimumPermissionLevelForMethod ¶
func (interceptor *Interceptor) SetMinimumPermissionLevelForMethod(method string, level auth.PermissionLevel)
SetMinimumPermissionLevelForMethod sets the minimum permission level required to use the given method
func (*Interceptor) Stream ¶
func (interceptor *Interceptor) Stream() grpc.StreamServerInterceptor
Stream intercepts stream RPC requests
func (*Interceptor) Unary ¶
func (interceptor *Interceptor) Unary() grpc.UnaryServerInterceptor
Unary intercepts unary RPC requests
Click to show internal directories.
Click to hide internal directories.