server

package
v0.0.0-...-d7a7399 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 9 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
}

func NewServer

func NewServer(db *pgxpool.Pool) *Server

func (*Server) DeleteProduct

func (s *Server) DeleteProduct(ctx context.Context, userID string, productID string) error

func (*Server) GetChatItems

func (s *Server) GetChatItems(ctx context.Context, userID, matchID string) (models.ChatItemList, error)

func (*Server) GetProductList

func (s *Server) GetProductList(ctx context.Context, userID string) (models.ProductList, error)

func (*Server) GetRecipeDetails

func (s *Server) GetRecipeDetails(ctx context.Context, userID, matchID string) (*models.RecipeDetails, error)

func (*Server) GetRecipeMatchList

func (s *Server) GetRecipeMatchList(ctx context.Context, userID string) (models.RecipeMatchList, error)

func (*Server) Login

func (s *Server) Login(ctx context.Context, email string) (*models.LoginResponse, error)

func (*Server) UserDeleteProductHandler

func (s *Server) UserDeleteProductHandler() user.DeleteProductHandler

func (*Server) UserGetChatItemsHandler

func (s *Server) UserGetChatItemsHandler() user.GetChatItemsHandler

func (*Server) UserGetProductListHandler

func (s *Server) UserGetProductListHandler() user.GetProductListHandler

func (*Server) UserGetRecipeDetailsHandler

func (s *Server) UserGetRecipeDetailsHandler() user.GetRecipeDetailsHandler

func (*Server) UserGetRecipeMatchListHandler

func (s *Server) UserGetRecipeMatchListHandler() user.GetRecipeMatchListHandler

func (*Server) UserLoginHandler

func (s *Server) UserLoginHandler() user.LoginHandler

func (*Server) Validate

func (s *Server) Validate(header string) (interface{}, error)

Validate function just return header that include userID

Jump to

Keyboard shortcuts

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