Documentation ¶
Index ¶
- type CustomerService
- type CustomerServiceImpl
- func (cs *CustomerServiceImpl) AddCustomer(customer *models.CustomerCreateRequest) (*models.CustomerCreateResponse, error)
- func (cs *CustomerServiceImpl) DeleteCustomer(id string) error
- func (cs *CustomerServiceImpl) GetCustomer(id string) (*models.CustomerGetResponse, error)
- func (cs *CustomerServiceImpl) GetCustomers() (*models.CustomersGetResponse, error)
- func (cs *CustomerServiceImpl) UpdateCustomer(id string, customer *models.CustomerUpdateRequest) (*models.CustomerUpdateResponse, error)
- type HealthService
- type HealthServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerService ¶
type CustomerService interface { AddCustomer(*models.CustomerCreateRequest) (*models.CustomerCreateResponse, error) GetCustomers() (*models.CustomersGetResponse, error) GetCustomer(string) (*models.CustomerGetResponse, error) UpdateCustomer(string, *models.CustomerUpdateRequest) (*models.CustomerUpdateResponse, error) DeleteCustomer(string) error }
func NewCustomerService ¶
func NewCustomerService(collection *mongo.Collection, ctx context.Context) CustomerService
type CustomerServiceImpl ¶
type CustomerServiceImpl struct {
// contains filtered or unexported fields
}
func (*CustomerServiceImpl) AddCustomer ¶
func (cs *CustomerServiceImpl) AddCustomer(customer *models.CustomerCreateRequest) (*models.CustomerCreateResponse, error)
func (*CustomerServiceImpl) DeleteCustomer ¶
func (cs *CustomerServiceImpl) DeleteCustomer(id string) error
func (*CustomerServiceImpl) GetCustomer ¶
func (cs *CustomerServiceImpl) GetCustomer(id string) (*models.CustomerGetResponse, error)
func (*CustomerServiceImpl) GetCustomers ¶
func (cs *CustomerServiceImpl) GetCustomers() (*models.CustomersGetResponse, error)
func (*CustomerServiceImpl) UpdateCustomer ¶
func (cs *CustomerServiceImpl) UpdateCustomer(id string, customer *models.CustomerUpdateRequest) (*models.CustomerUpdateResponse, error)
type HealthService ¶
type HealthService interface {
CheckHealth() (*models.HealthResponse, error)
}
func NewHealthService ¶
func NewHealthService(client *mongo.Client, ctx context.Context) HealthService
type HealthServiceImpl ¶
type HealthServiceImpl struct {
// contains filtered or unexported fields
}
func (*HealthServiceImpl) CheckHealth ¶
func (hs *HealthServiceImpl) CheckHealth() (*models.HealthResponse, error)
Click to show internal directories.
Click to hide internal directories.