Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Uuid string `json:"uuid"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at,omitempty"` Link string `json:"link"` AlbumType AlbumType `json:"album_type"` Visibility Visibility `json:"visibility"` Name string `json:"name"` Description string `json:"description,omitempty"` User User `json:"user"` Images []Image `json:"images,omitempty"` }
type Claims ¶ added in v0.1.4
type Claims struct { UserUuid string `json:"userUuid"` jwt.RegisteredClaims }
type NewAlbum ¶
type NewAlbum struct { Visibility Visibility `json:"visibility"` Name string `json:"name"` Description string `json:"description,omitempty"` Link string `json:"link,omitempty"` User User `json:"user,omitempty"` }
func DecodeRequestToNewAlbum ¶
type NewImage ¶
type NewImage struct { Filename string `json:"filename"` Link string `json:"link,omitempty"` Image string `json:"image,omitempty"` }
func DecodeRequestToNewImage ¶
type User ¶
type User struct { Uuid string `json:"uuid"` Username string `json:"username"` Albums []Album `json:"albums,omitempty"` }
User struct for User
func DecodeMessageToUser ¶
type Visibility ¶
type Visibility string
Visibility the model 'Visibility'
const ( PUBLIC Visibility = "public" PRIVATE Visibility = "private" )
List of Visibility
Click to show internal directories.
Click to hide internal directories.