Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func (*AuthHandler) Authenticate ¶
type Authenticator ¶
type Authorizer ¶
type CasbinAuthorizer ¶
type CasbinAuthorizer struct{}
type Handler ¶
type Handler interface { Authorize(ctx context.Context, operationName string, k string) (context.Context, error) Authenticate(ctx context.Context, operationName string, k string) (context.Context, error) }
func NewAuthHandler ¶
func NewAuthHandler(n Authenticator, z Authorizer) Handler
Click to show internal directories.
Click to hide internal directories.