endpoint

package
v0.0.0-...-4b9dede Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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