Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenChecker ¶
type BearerTokenChecker struct {
Checker
// contains filtered or unexported fields
}
func (*BearerTokenChecker) CheckAdmin ¶
type Checker ¶
type Checker interface {
CheckAuth(ctx context.Context, header http.Header) error
CheckAdmin(ctx context.Context, header http.Header) error
}
func NewChecker ¶
func NewChecker(typez CheckType, apiProvider client.APIProvider) (Checker, error)
Click to show internal directories.
Click to hide internal directories.