controllers

package
v0.0.0-...-1af73ce Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationController

type ApplicationController struct{}

ApplicationController is controller for applications

func NewApplicationController

func NewApplicationController() *ApplicationController

NewApplicationController is constructor for ApplicationController

func (*ApplicationController) Cmd

func (ac *ApplicationController) Cmd(c echo.Context) (err error)

Cmd is controller for command to play sound

func (*ApplicationController) Create

func (ac *ApplicationController) Create(c echo.Context) (err error)

Create creates an application

func (*ApplicationController) Destroy

func (ac *ApplicationController) Destroy(c echo.Context) (err error)

Destroy destroys an application

func (*ApplicationController) Index

func (ac *ApplicationController) Index(c echo.Context) (err error)

Index index applications

func (*ApplicationController) OwnerShow

func (ac *ApplicationController) OwnerShow(c echo.Context) (err error)

OwnerShow show a application for owner

func (*ApplicationController) RenewToken

func (ac *ApplicationController) RenewToken(c echo.Context) (err error)

RenewToken renewal access token

func (*ApplicationController) Show

func (ac *ApplicationController) Show(c echo.Context) (err error)

Show returns an application

func (*ApplicationController) Update

func (ac *ApplicationController) Update(c echo.Context) (err error)

Update updates an application

func (*ApplicationController) WS

func (ac *ApplicationController) WS(c echo.Context) (err error)

WS websocket controller

func (*ApplicationController) WSAuth

func (ac *ApplicationController) WSAuth(c echo.Context) (err error)

WSAuth authenticate websocket connection

type HealthController

type HealthController struct{}

HealthController controller for health request

func NewHealthController

func NewHealthController() *HealthController

NewHealthController is constructer for HealthController

func (*HealthController) Index

func (hc *HealthController) Index(c echo.Context) error

Index is index route for health

func (*HealthController) Secret

func (hc *HealthController) Secret(c echo.Context) error

Secret is example secret route

type IndexController

type IndexController struct{}

IndexController returns server info

func NewIndexController

func NewIndexController() *IndexController

NewIndexController is constructor for IndexController

func (*IndexController) Version

func (ic *IndexController) Version(c echo.Context) error

type SoundController

type SoundController struct{}

SoundController is controller for sounds

func NewSoundController

func NewSoundController() *SoundController

NewSoundController is constructor for SoundController

func (*SoundController) Count

func (sc *SoundController) Count(c echo.Context) error

Count returns the number of sounds

func (*SoundController) Index

func (sc *SoundController) Index(c echo.Context) (err error)

Index index sounds

type UserController

type UserController struct{}

UserController is controller for users

func NewUserController

func NewUserController() *UserController

NewUserController is constructor for UserController

func (*UserController) Create

func (uc *UserController) Create(c echo.Context) (err error)

Create creates a user

func (*UserController) Destroy

func (uc *UserController) Destroy(c echo.Context) (err error)

Destroy destroys a user

func (*UserController) Me

func (uc *UserController) Me(c echo.Context) (err error)

Me returns a user logged in

func (*UserController) Show

func (uc *UserController) Show(c echo.Context) (err error)

Show returns a user

func (*UserController) Update

func (uc *UserController) Update(c echo.Context) (err error)

Update update User

Jump to

Keyboard shortcuts

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