Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct {
IssuedBy string `json:"iss,omitempty"`
CustomerID string `json:"cus,omitempty"`
SubscriberID string `json:"sub,omitempty"`
Type string `json:"typ,omitempty"`
Limit Limits `json:"lim,omitempty"`
IssuedAt time.Time `json:"iat,omitempty"`
ExpiresAt time.Time `json:"exp,omitempty"`
Metadata json.RawMessage `json:"dat,omitempty"`
}
License is a ...
type Limit ¶
type Limit struct {
Key string `json:"key"`
Value int `json:"value,omitempty"`
List []string `json:"list,omitempty"`
}
Limit is ...
type Private ¶
type Private struct {
License License
// contains filtered or unexported fields
}
Private is ...
func DecodePrivateKey ¶
DecodePrivateKey is decode private key from base64
type Public ¶
type Public struct {
License License
// contains filtered or unexported fields
}
Public is ...
func DecodePublicKey ¶
DecodePublicKey and decode public key from base64
Click to show internal directories.
Click to hide internal directories.