Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseError ¶
func ResponseError(w http.ResponseWriter, code int, message string)
Types ¶
type Service ¶
type Service struct { Client *mongo.Client Whole *mongo.Collection Jma *mongo.Collection }
func (*Service) IndexHandler ¶
func (s *Service) IndexHandler(w http.ResponseWriter, r *http.Request)
func (*Service) ItemHandler ¶
func (s *Service) ItemHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.