handler

package
v0.0.0-...-678501e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 9 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 {
	Store *sql.DB
}

func (*Admin) Create

func (a *Admin) Create(c echo.Context) error

nolint: wrapcheck

func (*Admin) Delete

func (a *Admin) Delete(c echo.Context) error

nolint: wrapcheck

func (*Admin) Register

func (a *Admin) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

func (*Admin) Update

func (a *Admin) Update(c echo.Context) error

type Favorite

type Favorite struct {
	Store *sql.DB
}

func (*Favorite) Create

func (f *Favorite) Create(c echo.Context) error

nolint: wrapcheck

func (*Favorite) Register

func (f *Favorite) Register(g *echo.Group)

func (*Favorite) Retrieve

func (f *Favorite) Retrieve(c echo.Context) error

type Film

type Film struct {
	Store *sql.DB
}

func (*Film) Register

func (f *Film) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

func (*Film) Retrieve

func (f *Film) Retrieve(c echo.Context) error

nolint: wrapcheck

func (*Film) RetrieveByID

func (f *Film) RetrieveByID(c echo.Context) error

nolint: wrapcheck

func (*Film) RetrieveByName

func (f *Film) RetrieveByName(c echo.Context) error

func (*Film) RetrieveByProducer

func (f *Film) RetrieveByProducer(c echo.Context) error

func (*Film) RetrieveByTag

func (f *Film) RetrieveByTag(c echo.Context) error

func (*Film) Watch

func (f *Film) Watch(c echo.Context) error

nolint: wrapcheck

func (*Film) WatchByScore

func (f *Film) WatchByScore(c echo.Context) error

type FilmRequest

type FilmRequest struct {
	Tag      string `query:"tag"`
	Name     string `query:"name"`
	Producer string `query:"producer"`
	Limit    int    `query:"limit"`
	Page     int    `query:"page"`
	Ordering string `query:"ordering"`
	Special  bool   `query:"special"`
}

type Follow

type Follow struct {
	Store *sql.DB
}

func (*Follow) Create

func (f *Follow) Create(c echo.Context) error

func (*Follow) Register

func (f *Follow) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

type Introduction

type Introduction struct {
	Store *sql.DB
}

func (*Introduction) Create

func (i *Introduction) Create(c echo.Context) error

func (*Introduction) Register

func (i *Introduction) Register(g *echo.Group)

func (*Introduction) Retrieve

func (i *Introduction) Retrieve(c echo.Context) error

type SignUp

type SignUp struct {
	Store *sql.DB
}

func (*SignUp) Create

func (s *SignUp) Create(c echo.Context) error

todo password constraint doesn't work todo unique constraint on email doesn't work

func (*SignUp) Register

func (s *SignUp) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

func (*SignUp) Retrieve

func (s *SignUp) Retrieve(c echo.Context) error

Retrieve retrieves URL for given short URL and redirect to it. nolint: wrapcheck

func (*SignUp) Update

func (s *SignUp) Update(c echo.Context) error

type Special

type Special struct {
	Store *sql.DB
}

func (*Special) Register

func (s *Special) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

func (*Special) UpdateByScore

func (s *Special) UpdateByScore(c echo.Context) error

func (*Special) UpdateByWallet

func (s *Special) UpdateByWallet(c echo.Context) error

type Vote

type Vote struct {
	Store *sql.DB
}

func (*Vote) Create

func (v *Vote) Create(c echo.Context) error

nolint: wrapcheck

func (*Vote) Register

func (v *Vote) Register(g *echo.Group)

func (*Vote) Retrieve

func (v *Vote) Retrieve(c echo.Context) error

nolint: wrapcheck

type Wallet

type Wallet struct {
	Store *sql.DB
}

func (*Wallet) Register

func (w *Wallet) Register(g *echo.Group)

Register registers the routes of URL handler on given group.

func (*Wallet) Update

func (w *Wallet) Update(c echo.Context) error

Jump to

Keyboard shortcuts

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