Documentation
¶
Index ¶
- type License
- func (l *License) ApplyApp(appName string) error
- func (l *License) Generate() error
- func (l *License) GetAlg() (alg string)
- func (l *License) GetApp(appName string) (*config.App, error)
- func (l *License) GetAppName() (appName string)
- func (l *License) IsLicenseValid(tokenString string) (bool, error)
- func (l *License) LoadSignKey()
- func (l *License) LoadVerifyKey()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` Headers map[string]interface{} `bson:"headers" json:"headers"` Hash string `bson:"hash" json:"-"` Token string `bson:"token" json:"token"` Claims jwt.MapClaims `bson:"claims" json:"claims"` Active bool `bson:"active" json:"active"` Signature config.Signature `bson:"-" json:"-"` // contains filtered or unexported fields }
func (*License) GetAppName ¶
func (*License) LoadSignKey ¶
func (l *License) LoadSignKey()
func (*License) LoadVerifyKey ¶
func (l *License) LoadVerifyKey()
Click to show internal directories.
Click to hide internal directories.