Documentation ¶
Index ¶
- type Names
- type RecipeController
- func (rc RecipeController) Create(json io.Reader) ([]byte, error)
- func (rc RecipeController) Delete(id string) ([]byte, error)
- func (rc RecipeController) Elastic(method string, id string, data []byte) (resp *http.Response, err error)
- func (rc RecipeController) Ingredients() ([]byte, error)
- func (rc RecipeController) List() ([]byte, error)
- func (rc RecipeController) ListNames() ([]byte, error)
- func (rc RecipeController) Read(id string) ([]byte, error)
- func (rc RecipeController) Units() ([]byte, error)
- func (rc RecipeController) Update(id string, json io.Reader) ([]byte, error)
- func (rc RecipeController) Upload(id string, r *http.Request) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecipeController ¶
type RecipeController struct {
// contains filtered or unexported fields
}
func NewRecipeController ¶
func NewRecipeController(s *mgo.Session) *RecipeController
func (RecipeController) Ingredients ¶
func (rc RecipeController) Ingredients() ([]byte, error)
func (RecipeController) List ¶
func (rc RecipeController) List() ([]byte, error)
func (RecipeController) ListNames ¶
func (rc RecipeController) ListNames() ([]byte, error)
func (RecipeController) Units ¶
func (rc RecipeController) Units() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.