Documentation ¶
Index ¶
- type Option
- type Options
- type Token
- func (token *Token) Cancellation(license string) error
- func (token *Token) CancellationAll(uType guard.UserType, uid int64) error
- func (token *Token) ExpiresAt(license string) int64
- func (token *Token) GetLicense(userType guard.UserType, uid int64) ([]string, error)
- func (token *Token) IssuerAt(license string) int64
- func (token *Token) License(user *guard.User) (string, string, error)
- func (token *Token) Provide(ctx context.Context) interface{}
- func (token *Token) RefreshLicense(refreshLicense string) (string, error)
- 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 ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func (*Token) Cancellation ¶
func (*Token) CancellationAll ¶
func (*Token) GetLicense ¶
func (*Token) RefreshLicense ¶ added in v0.3.9
Click to show internal directories.
Click to hide internal directories.