Documentation
¶
Index ¶
- func Create(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Delete(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
- func List(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func ListOne(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Update(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- type Links
- type SelfReference
- type Weight
- type Weights
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSubrouter ¶
func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter
Types ¶
type SelfReference ¶
SelfReference to hold links and id
type Weight ¶
type Weight struct {
Name string `bson:"name" json:"name"`
Value float64 `bson:"value" json:"value"`
}
Weight hols a mapping between group name and weight value
type Weights ¶
type Weights struct {
ID string `bson:"id" json:"id"`
DateInt int `bson:"date_integer" json:"-"`
Date string `bson:"date" json:"date"`
Name string `bson:"name" json:"name"`
WeightType string `bson:"weight_type" json:"weight_type"`
GroupType string `bson:"group_type" json:"group_type"`
Groups []Weight `bson:"groups" json:"groups"`
}
Weights holds a list of group weights of specific type and of specific group type
Click to show internal directories.
Click to hide internal directories.