{"modulePath":"github.com/two/openedge","version":"v0.0.0-20190125045953-e4797a10c585","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype Config struct {\n\tFunctions []FunctionInfo `yaml:\"functions\" json:\"functions\" default:\"[]\"`\n}\n```\nConfig function module config\n\n```go\ntype FunctionInfo struct {\n\tName      string             `yaml:\"name\" json:\"name\" validate:\"nonzero\"`\n\tRuntime   string             `yaml:\"runtime\" json:\"runtime\" validate:\"nonzero\"`\n\tHandler   string             `yaml:\"handler\" json:\"handler\" validate:\"nonzero\"`\n\tCodeDir   string             `yaml:\"codedir\" json:\"codedir\"`\n\tEnv       map[string]string  `yaml:\"env\" json:\"env\"`\n\tInstance  Instance           `yaml:\"instance\" json:\"instance\"`\n\tSubscribe openedge.TopicInfo `yaml:\"subscribe\" json:\"subscribe\"`\n\tPublish   openedge.TopicInfo `yaml:\"publish\" json:\"publish\"`\n}\n```\nFunctionInfo config\n\n```go\ntype Instance struct {\n\tMin int `yaml:\"min\" json:\"min\" default:\"0\" validate:\"min=0, max=100\"`\n\tMax int `yaml:\"max\" json:\"max\" default:\"1\" validate:\"min=1, max=100\"`\n}\n```\nInstance instance config for function runtime module\n\n```go\ntype RuntimeInfo struct {\n\topenedge.Config `yaml:\",inline\" json:\",inline\"`\n\tSubscribe       openedge.TopicInfo `yaml:\"subscribe\" json:\"subscribe\"`\n\tPublish         openedge.TopicInfo `yaml:\"publish\" json:\"publish\"`\n\tName            string             `yaml:\"name\" json:\"name\" validate:\"nonzero\"`\n\tHandler         string             `yaml:\"handler\" json:\"handler\" validate:\"nonzero\"`\n}\n```\nRuntimeInfo config\n\n","path":"github.com/two/openedge/openedge-function","name":"main","synopsis":"","isRedistributable":true}
