Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { ID string `json:"id"` SubjectID string `json:"subject_id"` PermissionLevel int `json:"permission_level"` Usage int `json:"usage"` Limit int `json:"limit"` CreatedAt time.Time `json:"created_at"` ExpiresAt time.Time `json:"expires_at"` LastUsed time.Time `json:"last_used"` Active bool `json:"active"` }
APIKey struct that represents the API key table in the database
type APIKeyGenerateRequest ¶
type APIKeyGenerateRequest struct {
UUID string `json:"uuid"`
}
APIKeyGenerateRequest represents the request body for the register handler
type LoginRequest ¶
LoginRequest represents the request body for the login handler
type RegisterRequest ¶
RegisterRequest represents the request body for the register handler
Click to show internal directories.
Click to hide internal directories.