Documentation ¶
Index ¶
- type Option
- type Options
- type Token
- func (token *Token) Cancellation(license string) error
- func (token *Token) ExpiresAt(license string) int64
- func (token *Token) GetLicense(userType guard.Type, uid int64) ([]string, error)
- func (token *Token) IssuerAt(license string) int64
- func (token *Token) License(user *guard.User) (string, error)
- func (token *Token) Provide(ctx context.Context) interface{}
- func (token *Token) Verify(license string) (*guard.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.