handler

package
v0.0.0-...-26a96a0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: GPL-3.0 Imports: 16 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) Get

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

Get retrieves a home by its ID. nolint: wrapcheck

func (Home) List

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

List retrieves homes with pagination. nolint: wrapcheck

func (Home) New

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

New creates a home based on user request. Accepts JSON body with optional base64-encoded photos. nolint: wrapcheck, funlen, cyclop

func (Home) Register

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

func (Home) Update

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

Update modifies an existing home. Only the owner or an admin can update. nolint: wrapcheck, cyclop, funlen

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

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