Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(model interface{}) func(w http.ResponseWriter, r *http.Request)
- func (s *Service) Delete(w http.ResponseWriter, r *http.Request)
- func (s *Service) Find(model interface{}) func(w http.ResponseWriter, r *http.Request)
- func (s *Service) FindOne(model interface{}) func(w http.ResponseWriter, r *http.Request)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Collection *mongo.Collection
}
func (*Service) Create ¶
func (s *Service) Create(model interface{}) func(w http.ResponseWriter, r *http.Request)
Create an item
func (*Service) Delete ¶
func (s *Service) Delete(w http.ResponseWriter, r *http.Request)
Delete an item by id
Click to show internal directories.
Click to hide internal directories.