Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAll(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetByCustomerID(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SendMail(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request)
- type MailService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is visit web handler
func New ¶
func New(s service, mSrv MailService, l glog.Logger) *Handler
New return new rest api visit handler
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
Create handle insert visit HTTP Request
func (*Handler) Delete ¶
func (h *Handler) Delete(w http.ResponseWriter, r *http.Request)
Delete handle delete visit HTTP Request
func (*Handler) Get ¶
func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
Get handle get visit HTTP request
func (*Handler) GetAll ¶
func (h *Handler) GetAll(w http.ResponseWriter, r *http.Request)
GetAll handle get visits HTTP Request
func (*Handler) GetByCustomerID ¶
func (h *Handler) GetByCustomerID(w http.ResponseWriter, r *http.Request)
GetByCustomerID handle get visits HTTP Request by customerID
Click to show internal directories.
Click to hide internal directories.