Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyInfoNotFound = fmt.Errorf("key info not found")
)
Functions ¶
This section is empty.
Types ¶
type JwtAuth ¶
type JwtAuth struct {
// contains filtered or unexported fields
}
func (*JwtAuth) API ¶
func (jwtAuth *JwtAuth) API() *JwtAuthAPI
type JwtAuthAPI ¶
type JwtAuthAPI struct {
JwtAuth *JwtAuth
}
func (*JwtAuthAPI) AuthNew ¶
func (a *JwtAuthAPI) AuthNew(ctx context.Context, perms []auth.Permission) ([]byte, error)
func (*JwtAuthAPI) AuthVerify ¶
func (a *JwtAuthAPI) AuthVerify(ctx context.Context, token string) ([]auth.Permission, error)
type JwtPayload ¶
type JwtPayload struct {
Allow []auth.Permission
}
Click to show internal directories.
Click to hide internal directories.