Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthenticationProvider ¶
type AuthenticationProvider interface { // Authenticate tries to authenticate the token Authenticate(ctx context.Context, token string) (*AuthResponse, error) }
type Interceptor ¶
type Interceptor interface { Unary() grpc.UnaryServerInterceptor Stream() grpc.StreamServerInterceptor }
func NewOPAInterceptor ¶
func NewOPAInterceptor(ctx context.Context, authProvider AuthenticationProvider, policy func(*rego.Rego)) (Interceptor, error)
Click to show internal directories.
Click to hide internal directories.