http

package
v0.0.0-...-97ddbf9 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is HTTP server struct. Includes logger, router, service, etc.

func NewServer

func NewServer(config *config.Server, logger *zap.Logger, srv service.Interface) (*Server, error)

NewServer return new HTTP Server.

func (*Server) IngredientsGetAll

func (srv *Server) IngredientsGetAll(ctx echo.Context) error

func (*Server) IngredientsGetByID

func (srv *Server) IngredientsGetByID(ctx echo.Context) error

func (*Server) OnStart

func (srv *Server) OnStart(ctx context.Context) error

OnStart is function which starts http server.

It must be called only once on starting of server life cycle.

Could be used in fx Hooks.

func (*Server) OnStop

func (srv *Server) OnStop(ctx context.Context) error

OnStop stops server.

Must be called only once.

May be used in fx Hooks.

func (*Server) RecipesAddRecipeToFavorite

func (srv *Server) RecipesAddRecipeToFavorite(ctx echo.Context) error

func (*Server) RecipesAddRecipeToShoppingCart

func (srv *Server) RecipesAddRecipeToShoppingCart(ctx echo.Context) error

func (*Server) RecipesCreate

func (srv *Server) RecipesCreate(ctx echo.Context) error

func (*Server) RecipesDeleteByID

func (srv *Server) RecipesDeleteByID(ctx echo.Context) error

func (*Server) RecipesDownloadShoppingCart

func (srv *Server) RecipesDownloadShoppingCart(ctx echo.Context) error

func (*Server) RecipesGetAll

func (srv *Server) RecipesGetAll(ctx echo.Context) error

func (*Server) RecipesGetByID

func (srv *Server) RecipesGetByID(ctx echo.Context) error

func (*Server) RecipesRemoveRecipeFromFavorite

func (srv *Server) RecipesRemoveRecipeFromFavorite(ctx echo.Context) error

func (*Server) RecipesRemoveRecipeFromShoppingCart

func (srv *Server) RecipesRemoveRecipeFromShoppingCart(ctx echo.Context) error

func (*Server) RecipesUpdateByID

func (srv *Server) RecipesUpdateByID(ctx echo.Context) error

func (*Server) TagsGetAll

func (srv *Server) TagsGetAll(ctx echo.Context) error

func (*Server) TagsGetByID

func (srv *Server) TagsGetByID(ctx echo.Context) error

func (*Server) TokensLogin

func (srv *Server) TokensLogin(ctx echo.Context) error

func (*Server) TokensLogout

func (srv *Server) TokensLogout(ctx echo.Context) error

func (*Server) UsersCreate

func (srv *Server) UsersCreate(ctx echo.Context) error

func (*Server) UsersGetAll

func (srv *Server) UsersGetAll(ctx echo.Context) error

func (*Server) UsersGetByID

func (srv *Server) UsersGetByID(ctx echo.Context) error

func (*Server) UsersGetMe

func (srv *Server) UsersGetMe(ctx echo.Context) error

func (*Server) UsersGetSubscriptions

func (srv *Server) UsersGetSubscriptions(ctx echo.Context) error

func (*Server) UsersSetPassword

func (srv *Server) UsersSetPassword(ctx echo.Context) error

func (*Server) UsersSubscribe

func (srv *Server) UsersSubscribe(ctx echo.Context) error

func (*Server) UsersUnsubscribe

func (srv *Server) UsersUnsubscribe(ctx echo.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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