Documentation ¶
Index ¶
- type CreatedToken
- func (this CreatedToken) GetCreatedAt() time.Time
- func (this CreatedToken) GetID() uuid.UUID
- func (this CreatedToken) GetScopes() []string
- func (this CreatedToken) GetUpdatedAt() time.Time
- func (this CreatedToken) GetUser() *User
- func (this CreatedToken) GetUserID() uuid.UUID
- func (CreatedToken) IsTokenBase()
- type File
- type Token
- type TokenBase
- type TokenInput
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedToken ¶
type CreatedToken struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` UserID uuid.UUID `json:"userID"` User *User `json:"user"` Scopes []string `json:"scopes"` Token string `json:"token"` }
func (CreatedToken) GetCreatedAt ¶
func (this CreatedToken) GetCreatedAt() time.Time
func (CreatedToken) GetID ¶
func (this CreatedToken) GetID() uuid.UUID
func (CreatedToken) GetScopes ¶
func (this CreatedToken) GetScopes() []string
func (CreatedToken) GetUpdatedAt ¶
func (this CreatedToken) GetUpdatedAt() time.Time
func (CreatedToken) GetUser ¶
func (this CreatedToken) GetUser() *User
func (CreatedToken) GetUserID ¶
func (this CreatedToken) GetUserID() uuid.UUID
func (CreatedToken) IsTokenBase ¶
func (CreatedToken) IsTokenBase()
type File ¶
type File struct { ID uuid.UUID `json:"id" gorm:"default:(-)"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` UserID uuid.UUID `json:"userID"` User *User `json:"user"` PublicID string `json:"publicID"` Name *string `json:"name,omitempty"` Extension *string `json:"extension,omitempty"` Size int64 `json:"size"` MimeType string `json:"mimeType"` Hash types.Hash `json:"hash"` }
type Token ¶
type Token struct { ID uuid.UUID `json:"id" gorm:"default:(-)"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` UserID uuid.UUID `json:"userID"` User *User `json:"user"` Hash types.Hash `json:"hash"` Scopes pq.StringArray `json:"scopes" gorm:"type:text[]"` }
func (Token) GetCreatedAt ¶
func (Token) GetUpdatedAt ¶
func (Token) IsTokenBase ¶
func (Token) IsTokenBase()
type TokenInput ¶
type TokenInput struct {
Scopes []string `json:"scopes"`
}
Click to show internal directories.
Click to hide internal directories.