Documentation ¶
Index ¶
- type Ltag
- type MediaController
- func (mc MediaController) CreateMedia(c echo.Context) error
- func (mc MediaController) CreateSubMedia(c echo.Context) error
- func (mc MediaController) DeleteMedia(c echo.Context) error
- func (mc MediaController) DeleteSubMedia(c echo.Context) error
- func (mc MediaController) DownloadMedia(c echo.Context) error
- func (mc MediaController) EditMedia(c echo.Context) error
- func (mc MediaController) HeaderTags(c echo.Context) []Ltag
- func (mc MediaController) ListMedia(c echo.Context) error
- func (mc MediaController) PlayFrontMedia(c echo.Context) error
- func (mc MediaController) PlayFrontSubMedia(c echo.Context) error
- func (mc MediaController) SearchMedia(c echo.Context) error
- func (mc MediaController) UpdateMedia(c echo.Context) error
- func (mc MediaController) UploadMedia(c echo.Context) error
- type UserController
- func (uc UserController) CreateUser(c echo.Context) error
- func (uc UserController) GetUserById(c echo.Context) error
- func (uc UserController) GetUserByNickname(c echo.Context) error
- func (uc UserController) GetUserByToken(c echo.Context) error
- func (uc UserController) RemoveUser(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaController ¶
type MediaController struct {
// contains filtered or unexported fields
}
func NewMediaController ¶
func (MediaController) CreateMedia ¶
func (mc MediaController) CreateMedia(c echo.Context) error
CreateMedia creates a new media resource
func (MediaController) CreateSubMedia ¶
func (mc MediaController) CreateSubMedia(c echo.Context) error
func (MediaController) DeleteMedia ¶
func (mc MediaController) DeleteMedia(c echo.Context) error
func (MediaController) DeleteSubMedia ¶
func (mc MediaController) DeleteSubMedia(c echo.Context) error
func (MediaController) DownloadMedia ¶
func (mc MediaController) DownloadMedia(c echo.Context) error
func (MediaController) EditMedia ¶
func (mc MediaController) EditMedia(c echo.Context) error
func (MediaController) HeaderTags ¶
func (mc MediaController) HeaderTags(c echo.Context) []Ltag
func (MediaController) ListMedia ¶
func (mc MediaController) ListMedia(c echo.Context) error
func (MediaController) PlayFrontMedia ¶
func (mc MediaController) PlayFrontMedia(c echo.Context) error
func (MediaController) PlayFrontSubMedia ¶
func (mc MediaController) PlayFrontSubMedia(c echo.Context) error
func (MediaController) SearchMedia ¶
func (mc MediaController) SearchMedia(c echo.Context) error
func (MediaController) UpdateMedia ¶
func (mc MediaController) UpdateMedia(c echo.Context) error
func (MediaController) UploadMedia ¶
func (mc MediaController) UploadMedia(c echo.Context) error
type UserController ¶
type UserController struct {
// contains filtered or unexported fields
}
UserController represents the controller for operating on the User resource
func NewUserController ¶
func NewUserController(s *mgo.Session, client *mongo.Client, db string) *UserController
NewUserController provides a reference to a UserController with provided mongo session
func (UserController) CreateUser ¶
func (uc UserController) CreateUser(c echo.Context) error
CreateUser creates a new user resource func (uc UserController) CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
func (UserController) GetUserById ¶
func (uc UserController) GetUserById(c echo.Context) error
GetUser retrieves an individual user resource func (uc UserController) GetUserById(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
func (UserController) GetUserByNickname ¶
func (uc UserController) GetUserByNickname(c echo.Context) error
GetUser retrieves an individual user resource func (uc UserController) GetUserByNickname(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
func (UserController) GetUserByToken ¶
func (uc UserController) GetUserByToken(c echo.Context) error
GetUser retrieves an individual user resource func (uc UserController) GetUserByToken(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
func (UserController) RemoveUser ¶
func (uc UserController) RemoveUser(c echo.Context) error
RemoveUser removes an existing user resource func (uc UserController) RemoveUser(w http.ResponseWriter, r *http.Request, p httprouter.Params) {