services

package
v0.0.0-...-09e5bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogResponse

type CatalogResponse struct {
	Name string `json:"name"`
}

type HealthService

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

func NewHealthService

func NewHealthService(db *mongo.Database) *HealthService

func (*HealthService) Ping

func (s *HealthService) Ping(ctx context.Context) error

type OrderService

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

func NewOrderService

func NewOrderService(db *mongo.Database) *OrderService

func (*OrderService) Create

func (s *OrderService) Create(ctx context.Context, order *models.Order) error

func (*OrderService) Get

func (*OrderService) List

func (s *OrderService) List(ctx *fasthttp.RequestCtx, user *middleware.Claim) ([]*models.Order, error)

func (*OrderService) SendPurchasedEmail

func (s *OrderService) SendPurchasedEmail(order *models.Order) error

type UserResponse

type UserResponse struct {
	Email     string `json:"email"`
	Firstname string `json:"firstName"`
	Lastname  string `json:"lastName"`
}

Jump to

Keyboard shortcuts

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