services

package
v0.0.0-...-43985c0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminService

type AdminService interface {
	CreateAdmin(c *gin.Context)
	GetAdmins(c *gin.Context)
	GetAdmin(c *gin.Context)
	UpdateAdmin(c *gin.Context)
	DeleteAdmin(c *gin.Context)
}

type HealthService

type HealthService interface {
	CheckHealth(c *gin.Context)
}

type Service

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

func NewAdminService

func NewAdminService(db *mongo.Database) *Service

func NewHealthService

func NewHealthService(db *mongo.Database) *Service

func (*Service) CheckHealth

func (s *Service) CheckHealth(c *gin.Context)

func (*Service) CreateAdmin

func (s *Service) CreateAdmin(c *gin.Context)

func (*Service) DeleteAdmin

func (s *Service) DeleteAdmin(c *gin.Context)

func (*Service) GetAdmin

func (s *Service) GetAdmin(c *gin.Context)

func (*Service) GetAdmins

func (s *Service) GetAdmins(c *gin.Context)

func (*Service) UpdateAdmin

func (s *Service) UpdateAdmin(c *gin.Context)

Jump to

Keyboard shortcuts

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