controllers

package
v0.0.0-...-0dd24be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Names

type Names []struct {
	Id    bson.ObjectId `json:"id" bson:"_id"`
	Title string        `json:"title" bson:"t"`
}

type RecipeController

type RecipeController struct {
	// contains filtered or unexported fields
}

func NewRecipeController

func NewRecipeController(s *mgo.Session) *RecipeController

func (RecipeController) Create

func (rc RecipeController) Create(json io.Reader) ([]byte, error)

func (RecipeController) Delete

func (rc RecipeController) Delete(id string) ([]byte, error)

func (RecipeController) Elastic

func (rc RecipeController) Elastic(method string, id string, data []byte) (resp *http.Response, err error)

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) Read

func (rc RecipeController) Read(id string) ([]byte, error)

func (RecipeController) Units

func (rc RecipeController) Units() ([]byte, error)

func (RecipeController) Update

func (rc RecipeController) Update(id string, json io.Reader) ([]byte, error)

func (RecipeController) Upload

func (rc RecipeController) Upload(id string, r *http.Request) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL