ingredients

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: 0BSD Imports: 6 Imported by: 0

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 MethodProps struct {
	Key         string
	Type        string
	IsReq       bool
	Description string
}

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

Directories

Path Synopsis
s3

Jump to

Keyboard shortcuts

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