handlers

package
v0.0.0-...-95a4c08 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderIDPath = "id"
	MaxPageSize = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OrdersHandler

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

func NewOrdersHandler

func NewOrdersHandler(dSvc db.OrdersDataService, lgr *logger.AppLogger) *OrdersHandler

func (*OrdersHandler) Create

func (o *OrdersHandler) Create(c *gin.Context)

func (*OrdersHandler) DeleteByID

func (o *OrdersHandler) DeleteByID(c *gin.Context)

func (*OrdersHandler) GetAll

func (o *OrdersHandler) GetAll(c *gin.Context)

func (*OrdersHandler) GetByID

func (o *OrdersHandler) GetByID(c *gin.Context)

type SeedHandler

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

func NewDataSeedHandler

func NewDataSeedHandler(svc db.OrdersDataService) *SeedHandler

func (*SeedHandler) SeedDB

func (s *SeedHandler) SeedDB(c *gin.Context)

type ServiceStatus

type ServiceStatus string
const (
	UP   ServiceStatus = "ok"
	DOWN ServiceStatus = "down"
)

type StatusController

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

func NewStatusController

func NewStatusController(dbMgr db.MongoManager) *StatusController

func (*StatusController) CheckStatus

func (s *StatusController) CheckStatus(c *gin.Context)

type StatusResponse

type StatusResponse struct {
	Status      ServiceStatus
	ServiceName string
	UpTime      string
	Environment string
	Version     string
}

Jump to

Keyboard shortcuts

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