Documentation
¶
Index ¶
- Constants
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteById(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAll(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetByID(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Home(w http.ResponseWriter, r *http.Request)
- func (h *Handler) InitRoutes() *mux.Router
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request)
- type Server
Constants ¶
View Source
const JSON = "application/json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
PostService pbPost.PostServiceClient
}
func NewHandler ¶
func NewHandler(ps pbPost.PostServiceClient) *Handler
func (*Handler) DeleteById ¶
func (h *Handler) DeleteById(w http.ResponseWriter, r *http.Request)
func (*Handler) InitRoutes ¶
Click to show internal directories.
Click to hide internal directories.