Documentation ¶
Index ¶
- type Charon
- func (c *Charon) FromContext(ctx context.Context) (*charon.Subject, error)
- func (c *Charon) IsAuthenticated(ctx context.Context, token string) (bool, error)
- func (c *Charon) IsGranted(ctx context.Context, userID int64, perm charon.Permission) (bool, error)
- func (c *Charon) Login(ctx context.Context, username, password string) (string, error)
- func (c *Charon) Logout(ctx context.Context, token string) error
- func (c *Charon) Subject(ctx context.Context, token string) (*charon.Subject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charon ¶
func (*Charon) FromContext ¶
Context implements Charon interface.
func (*Charon) IsAuthenticated ¶
IsAuthenticated implements Charon interface.
Click to show internal directories.
Click to hide internal directories.