Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationView ¶
type ApplicationView struct { gorm.Model Name string `json:"name"` IsPassword bool `json:"isPassword"` User *UserView `json:"user"` UserID uint `json:"userId"` Description string `json:"description"` }
ApplicationView is view for an application
func NewApplicationView ¶
func NewApplicationView(app *models.Application) *ApplicationView
NewApplicationView is constructor for view of an application
type OwnerApplicationView ¶
type OwnerApplicationView struct { gorm.Model Name string `json:"name"` IsPassword bool `json:"isPassword"` User *UserView `json:"user"` UserID uint `json:"userId"` Description string `json:"description"` AccessToken string `json:"accessToken"` }
OwnerApplicationView is view for owner of the application
func NewOwnerApplicationView ¶
func NewOwnerApplicationView(app *models.Application) *OwnerApplicationView
NewOwnerApplicationView is constructor for view of owner's application
type SoundView ¶
SoundView is view for a sound
func NewSoundView ¶
NewSoundView is constructor for SoundView
type UserView ¶
type UserView struct { gorm.Model UID string `json:"uid"` Name string `json:"name"` Applications []*ApplicationView `json:"applications"` Description string `json:"description"` }
UserView is view for user
func NewUserView ¶
NewUserView is constructor for view of users
Click to show internal directories.
Click to hide internal directories.