Documentation
¶
Index ¶
- type Config
- type Service
- func (s *Service) CreateCustomer(ctx context.Context, input customer.CreateCustomerInput) (*customer.Customer, error)
- func (s *Service) DeleteCustomer(ctx context.Context, input customer.DeleteCustomerInput) error
- func (s *Service) GetCustomer(ctx context.Context, input customer.GetCustomerInput) (*customer.Customer, error)
- func (s *Service) GetCustomerByUsageAttribution(ctx context.Context, input customer.GetCustomerByUsageAttributionInput) (*customer.Customer, error)
- func (s *Service) ListCustomerUsageAttributions(ctx context.Context, input customer.ListCustomerUsageAttributionsInput) (pagination.Result[streaming.CustomerUsageAttribution], error)
- func (s *Service) ListCustomers(ctx context.Context, input customer.ListCustomersInput) (pagination.Result[customer.Customer], error)
- func (s *Service) RegisterHooks(hooks ...models.ServiceHook[customer.Customer])
- func (s *Service) RegisterRequestValidator(v customer.RequestValidator)
- func (s *Service) UpdateCustomer(ctx context.Context, input customer.UpdateCustomerInput) (*customer.Customer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateCustomer ¶
func (s *Service) CreateCustomer(ctx context.Context, input customer.CreateCustomerInput) (*customer.Customer, error)
CreateCustomer creates a customer
func (*Service) DeleteCustomer ¶
DeleteCustomer deletes a customer
func (*Service) GetCustomer ¶
func (s *Service) GetCustomer(ctx context.Context, input customer.GetCustomerInput) (*customer.Customer, error)
GetCustomer gets a customer
func (*Service) GetCustomerByUsageAttribution ¶
func (s *Service) GetCustomerByUsageAttribution(ctx context.Context, input customer.GetCustomerByUsageAttributionInput) (*customer.Customer, error)
GetCustomerByUsageAttribution gets a customer by usage attribution
func (*Service) ListCustomerUsageAttributions ¶
func (s *Service) ListCustomerUsageAttributions(ctx context.Context, input customer.ListCustomerUsageAttributionsInput) (pagination.Result[streaming.CustomerUsageAttribution], error)
ListCustomerUsageAttributions lists customer usage attributions
func (*Service) ListCustomers ¶
func (s *Service) ListCustomers(ctx context.Context, input customer.ListCustomersInput) (pagination.Result[customer.Customer], error)
ListCustomers lists customers
func (*Service) RegisterHooks ¶
func (s *Service) RegisterHooks(hooks ...models.ServiceHook[customer.Customer])
func (*Service) RegisterRequestValidator ¶
func (s *Service) RegisterRequestValidator(v customer.RequestValidator)
func (*Service) UpdateCustomer ¶
func (s *Service) UpdateCustomer(ctx context.Context, input customer.UpdateCustomerInput) (*customer.Customer, error)
UpdateCustomer updates a customer
Click to show internal directories.
Click to hide internal directories.