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