handler

package
v0.0.0-...-f12052e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Healthz

type Healthz struct {
	Logger *zap.Logger
	Tracer trace.Tracer
}

func (Healthz) Handle

func (h Healthz) Handle(c echo.Context) error

Handle shows server is up and running. nolint: wrapcheck

func (Healthz) Register

func (h Healthz) Register(g *echo.Group)

Register registers the routes of healthz handler on given echo group.

type Home

type Home struct {
	Store  home.Home
	Tracer trace.Tracer
	Logger *zap.Logger
}

func (Home) New

func (h Home) New(c echo.Context) error

nolint: wrapcheck, funlen, cyclop New create a home based on user request. unlike the other requests this request uses form. this request can contains many files as home images. please note that the maximum size of each home creation request is 10MB.

func (Home) Register

func (h Home) Register(g *echo.Group)

type User

type User struct {
	Store  user.User
	Tracer trace.Tracer
	Logger *zap.Logger
	JWT    jwt.JWT
}

func (User) Create

func (h User) Create(c echo.Context) error

nolint: wrapcheck

func (User) Login

func (h User) Login(c echo.Context) error

Login checks given credentials and generate jwt token nolint: wrapcheck

func (User) Register

func (h User) Register(g *echo.Group)

Register registers the routes of User handler on given group.

Jump to

Keyboard shortcuts

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