controllers

package
v0.0.0-...-b185ea6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2023 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ltag

type Ltag struct {
	Id   string
	Name string
}

type MediaController

type MediaController struct {
	// contains filtered or unexported fields
}

func NewMediaController

func NewMediaController(client *mongo.Client, media string, config common.Gobee, homeuser string) *MediaController

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) {

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL