Documentation ¶
Index ¶
- type PersonHandler
- func (ph *PersonHandler) CountPerson(w http.ResponseWriter, r *http.Request)
- func (ph *PersonHandler) CreatePerson(w http.ResponseWriter, r *http.Request)
- func (ph *PersonHandler) DeletePerson(w http.ResponseWriter, r *http.Request)
- func (ph *PersonHandler) GetPerson(w http.ResponseWriter, r *http.Request)
- func (ph *PersonHandler) GetPersonByID(w http.ResponseWriter, r *http.Request)
- func (ph *PersonHandler) UpdatePerson(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersonHandler ¶
type PersonHandler struct {
Repo repository.PersonRepository
}
func NewPersonHandler ¶
func NewPersonHandler(repo repository.PersonRepository) *PersonHandler
func (*PersonHandler) CountPerson ¶
func (ph *PersonHandler) CountPerson(w http.ResponseWriter, r *http.Request)
func (*PersonHandler) CreatePerson ¶
func (ph *PersonHandler) CreatePerson(w http.ResponseWriter, r *http.Request)
func (*PersonHandler) DeletePerson ¶
func (ph *PersonHandler) DeletePerson(w http.ResponseWriter, r *http.Request)
func (*PersonHandler) GetPerson ¶
func (ph *PersonHandler) GetPerson(w http.ResponseWriter, r *http.Request)
func (*PersonHandler) GetPersonByID ¶
func (ph *PersonHandler) GetPersonByID(w http.ResponseWriter, r *http.Request)
func (*PersonHandler) UpdatePerson ¶
func (ph *PersonHandler) UpdatePerson(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.