Documentation ¶
Index ¶
Constants ¶
View Source
const ( SuccessToCreateAddress = "address created with success" SuccessToGetAddress = "address found with success" ErrorToCreateAddress = "error to create and process the request" ErrorToGetAddress = "error to get and address by id" AddressNotFound = "address not found" AddressNotFoundMessage = "the address with id %d wasn't found" )
View Source
const ( SuccessToCreateCustomer = "user created with success" ErrorToCreateCustomer = "error to create and process the request" )
View Source
const ( SuccessToCreatePerson = "person created with success" SuccessToGetPerson = "person found with success" ErrorToCreatePerson = "error to create and process the request" ErrorToGetPerson = "error to get person by id" PersonNotFound = "person with id %d wasn´t found" )
View Source
const ( SuccessToCreatePhone = "phone created with success" SuccessToGetPhone = "phone found with success" ErrorToCreatePhone = "error to create and process the request" ErrorToGetPhone = "error retrieving phone by ID" //TODO: Adjust error messages to this model PhoneNotFound = "phone not found" PhoneNotFoundMessage = "the phone with id %d wasn't found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { AddressService input.IAddressService LoggerSugar *zap.SugaredLogger }
type AddressRequest ¶
type AddressResponse ¶
type Customer ¶
type Customer struct { CustomerService input.ICustomerService LoggerSugar *zap.SugaredLogger }
type CustomerRequest ¶
type CustomerResponse ¶
type Generic ¶
type Generic struct {
LoggerSugar *zap.SugaredLogger
}
func (*Generic) HealthCheck ¶
func (h *Generic) HealthCheck(w http.ResponseWriter, r *http.Request)
type Person ¶
type Person struct { PersonService input.IPersonService LoggerSugar *zap.SugaredLogger }
type PersonRequest ¶
type PersonResponse ¶
type Phone ¶
type Phone struct { PhoneService input.IPhoneService LoggerSugar *zap.SugaredLogger }
type PhoneRequest ¶
Click to show internal directories.
Click to hide internal directories.