handlers

package
v0.0.0-...-b5261c4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
}

Admin - struct for admin handler

func NewAdmin

func NewAdmin() *Admin

NewAdmin - constructor for admin handler

func (*Admin) Home

func (a *Admin) Home(ctx echo.Context) error

Home - handler of root page

type UserHandler

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

UserHandler - handler of user

func NewUserHandler

func NewUserHandler(user *services.UserService, log *logger.Logger) *UserHandler

NewUserHandler - constructor of UserHandler

func (*UserHandler) Create

func (h *UserHandler) Create(ctx echo.Context) error

Create - create user

func (*UserHandler) List

func (h *UserHandler) List(ctx echo.Context) error

List - list of all users

Jump to

Keyboard shortcuts

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