Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limit ¶
type Limit struct { // Count represents the maximum count of usage number. Count int64 // UserId represents the Limit user association. If empty, the Limit is a group-level limit. UserId string // Expires represents the user-specific limit expiration deadline. Expires time.Time }
Limit represents the usage limit.
type Usage ¶
type Usage struct { // Count represents the usage count since the last reset time (if any). Count int64 // CountTotal represents the total usage count since the time in the Since field. CountTotal int64 // Since represents the time when usage started for the 1st time. Together with CountTotal it may be used to // estimate the average usage rate. Since time.Time }
Click to show internal directories.
Click to hide internal directories.