Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthenticator ¶
RegisterAuthenticator register global authenticator.
func RegisterAuthorizer ¶
RegisterAuthorizer register global authorizer.
Types ¶
type Authenticator ¶
type Authenticator interface {
Authenticate(ctx context.Context, r *http.Request) (guardauth.Info, error)
}
var (
DefaultAuthenticator Authenticator
)
type Authorizer ¶
var (
DefaultAuthorizer Authorizer
)
Click to show internal directories.
Click to hide internal directories.