Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownIngredient = errors.New("unknown ingredient") ErrUnknownMethod = errors.New("unknown method") )
Functions ¶
func NewRecipeCooker ¶ added in v0.0.5
func NewRecipeCooker(id types.StepID, ingredient types.Ingredient, method string, params map[string]interface{}) (types.RecipeCooker, error)
func RegisterAllMethods ¶
func RegisterAllMethods(step types.RecipeCooker)
Types ¶
type IngredientMap ¶ added in v0.0.13
type IngredientMap map[types.Ingredient]map[string]types.RecipeCooker
func (IngredientMap) String ¶ added in v0.0.13
func (m IngredientMap) String() string
type MethodProps ¶ added in v0.0.5
type MethodPropsSet ¶ added in v0.0.5
type MethodPropsSet []MethodProps
func PropMapToPropSet ¶ added in v0.0.5
func PropMapToPropSet(pmap map[string]string) (MethodPropsSet, error)
func (MethodPropsSet) ToMap ¶ added in v0.0.5
func (m MethodPropsSet) ToMap() map[string]string
Click to show internal directories.
Click to hide internal directories.