controller

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

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileController

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

FileController ...

func NewFiles

func NewFiles(ctx context.Context, services *service.Manager, logger *logger.Logger) *FileController

NewFiles creates a new file controller.

func (*FileController) Create

func (ctr *FileController) Create(ctx echo.Context) error

Create creates new file

func (*FileController) Delete

func (ctr *FileController) Delete(ctx echo.Context) error

Delete deletes file by ID

func (*FileController) Download

func (ctr *FileController) Download(ctx echo.Context) error

Download file content from the cloud

func (*FileController) Get

func (ctr *FileController) Get(ctx echo.Context) error

Get returns file by ID

func (*FileController) Upload

func (ctr *FileController) Upload(ctx echo.Context) error

Upload file content to cloud

type UserController

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

UserController ...

func NewUsers

func NewUsers(ctx context.Context, services *service.Manager, logger *logger.Logger) *UserController

NewUsers creates a new user controller.

func (*UserController) Create

func (ctr *UserController) Create(ctx echo.Context) error

Create creates new user

func (*UserController) Delete

func (ctr *UserController) Delete(ctx echo.Context) error

Delete deletes user by ID

func (*UserController) Get

func (ctr *UserController) Get(ctx echo.Context) error

Get returns user by ID

Jump to

Keyboard shortcuts

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