Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceController

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

DeviceController represents the controller for operating on the Device resource

func NewDeviceController

func NewDeviceController(s *mgo.Session, db string) *DeviceController

NewUserController provides a reference to a DeviceController with provided mongo session

func (DeviceController) CreateDevice

func (dc DeviceController) CreateDevice(c echo.Context) error

CreateUser creates a new user resource func (uc DeviceController) CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (DeviceController) DeleteDevice

func (dc DeviceController) DeleteDevice(c echo.Context) error

func (DeviceController) EditDevice

func (dc DeviceController) EditDevice(c echo.Context) error

func (DeviceController) GetDeviceById

func (dc DeviceController) GetDeviceById(c echo.Context) error

GetUser retrieves an individual user resource func (uc DeviceController) GetUserById(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (DeviceController) GetDeviceByName

func (dc DeviceController) GetDeviceByName(c echo.Context) error

GetUser retrieves an individual user resource func (uc DeviceController) GetUserByNickname(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (DeviceController) GetDeviceByToken

func (dc DeviceController) GetDeviceByToken(c echo.Context) error

GetUser retrieves an individual user resource func (uc DeviceController) GetUserByToken(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (DeviceController) ListDevice

func (dc DeviceController) ListDevice(c echo.Context) error

func (DeviceController) NewDevice

func (dc DeviceController) NewDevice(c echo.Context) error

func (DeviceController) UpdateDevice

func (dc DeviceController) UpdateDevice(c echo.Context) error

type JobController

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

JobController represents the controller for operating on the Job resource

func NewJobController

func NewJobController(s *mgo.Session, db string, speech_lang string) *JobController

NewUserController provides a reference to a JobController with provided mongo session

func (JobController) CreateJob

func (jc JobController) CreateJob(c echo.Context) error

CreateUser creates a new user resource func (uc JobController) CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (JobController) DeleteJob

func (jc JobController) DeleteJob(c echo.Context) error

func (JobController) EditJob

func (jc JobController) EditJob(c echo.Context) error

func (JobController) GetJobById

func (jc JobController) GetJobById(c echo.Context) error

GetUser retrieves an individual user resource func (uc JobController) GetUserById(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (JobController) GetJobByName

func (jc JobController) GetJobByName(c echo.Context) error

GetUser retrieves an individual user resource func (uc JobController) GetUserByNickname(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (JobController) GetJobByToken

func (jc JobController) GetJobByToken(c echo.Context) error

GetUser retrieves an individual user resource func (uc JobController) GetUserByToken(w http.ResponseWriter, r *http.Request, p httprouter.Params) {

func (JobController) Launch_jobs

func (jc JobController) Launch_jobs(activated bool)

func (JobController) ListJob

func (jc JobController) ListJob(c echo.Context) error

func (JobController) NewJob

func (jc JobController) NewJob(c echo.Context) error

func (JobController) Speech

func (jc JobController) Speech(msg string)

func (JobController) StopJob

func (jc JobController) StopJob(c echo.Context) error

func (JobController) UpdateJob

func (jc JobController) UpdateJob(c echo.Context) error

type Jobs

type Jobs struct {
	Ljobs []Ljob
}

type Ljob

type Ljob struct {
	Id      string
	Mediaid string
	Name    string
	Cron    string
	Speak   string
}

type Ltag

type Ltag struct {
	Id   string
	Name string
}

type MediaController

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

func NewMediaController

func NewMediaController(s *mgo.Session, media string, config common.Gopilot) *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) PlayBackMedia

func (mc MediaController) PlayBackMedia(c echo.Context) error

func (MediaController) PlayFrontMedia

func (mc MediaController) PlayFrontMedia(c echo.Context) error

func (MediaController) PlayFrontMediaChunk

func (mc MediaController) PlayFrontMediaChunk(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, 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) {