Documentation ¶
Index ¶
- type CustomerEndpoint
- func (e *CustomerEndpoint) AddAddress(w http.ResponseWriter, r *http.Request)
- func (e *CustomerEndpoint) AddCustomer(w http.ResponseWriter, r *http.Request)
- func (e *CustomerEndpoint) GetCustomer(w http.ResponseWriter, r *http.Request)
- func (e *CustomerEndpoint) GetCustomers(w http.ResponseWriter, r *http.Request)
- func (e *CustomerEndpoint) RegisterRoute(r *chi.Mux) *chi.Mux
- type CustomerEndpointInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerEndpoint ¶
type CustomerEndpoint struct {
// contains filtered or unexported fields
}
func (*CustomerEndpoint) AddAddress ¶
func (e *CustomerEndpoint) AddAddress(w http.ResponseWriter, r *http.Request)
func (*CustomerEndpoint) AddCustomer ¶
func (e *CustomerEndpoint) AddCustomer(w http.ResponseWriter, r *http.Request)
func (*CustomerEndpoint) GetCustomer ¶
func (e *CustomerEndpoint) GetCustomer(w http.ResponseWriter, r *http.Request)
func (*CustomerEndpoint) GetCustomers ¶
func (e *CustomerEndpoint) GetCustomers(w http.ResponseWriter, r *http.Request)
func (*CustomerEndpoint) RegisterRoute ¶
func (e *CustomerEndpoint) RegisterRoute(r *chi.Mux) *chi.Mux
type CustomerEndpointInterface ¶
type CustomerEndpointInterface interface { GetCustomer(w http.ResponseWriter, r *http.Request) GetCustomers(w http.ResponseWriter, r *http.Request) AddCustomer(w http.ResponseWriter, r *http.Request) AddAddress(w http.ResponseWriter, r *http.Request) RegisterRoute(r *chi.Mux) *chi.Mux }
func NewCustomerEndpoint ¶
func NewCustomerEndpoint( customerCommand command.CustomerCommandInterface, customerQuery query.CustomerQueryInterface, ) CustomerEndpointInterface
Click to show internal directories.
Click to hide internal directories.