Documentation ¶
Overview ¶
Package config models the configuration file for Amplify
Index ¶
Constants ¶
View Source
const ( LogLevelFlag = "log-level" ConfigPathFlag = "config" PortFlag = "port" IPFSSearchEnabledFlag = "trigger.ipfs-search.enabled" IPFSSearchQueryURLFlag = "trigger.ipfs-search.query-url" IPFSSearchPeriodFlag = "trigger.ipfs-search.period" DBURIFlag = "db.uri" NumConcurrentNodesFlag = "num-concurrent-nodes" NumConcurrentWorkflowsFlag = "num-concurrent-workflows" MaxWaitingWorkflowsFlag = "max-waiting-workflows" DisableCORSFlag = "disable-cors" )
Define all global flag names
View Source
const ( DefaultTimeout = 10 * time.Minute DefaultCPU = "1" DefaultMemory = "1Gi" )
Variables ¶
This section is empty.
Functions ¶
func AddGlobalFlags ¶
Types ¶
type AppConfig ¶
type AppConfig struct { LogLevel zerolog.Level `yaml:"log-level"` ConfigPath string `yaml:"config-path"` Port int `yaml:"port"` Trigger Trigger `yaml:"trigger"` DB DB `yaml:"db"` NodeConcurrency int `yaml:"concurrency"` WorkflowConcurrency int `yaml:"workflow-concurrency"` MaxWaitingWorkflows int `yaml:"max-waiting-workflows"` DisableCORS bool `yaml:"disable-cors"` }
func ParseAppConfig ¶
type IPFSSearch ¶ added in v0.2.0
type Node ¶
type Node struct { ID string `yaml:"id"` JobID string `yaml:"job_id"` Inputs []NodeInput `yaml:"inputs"` Outputs []NodeOutput `yaml:"outputs"` }
func (*Node) ApplyDefaults ¶ added in v0.2.2
func (n *Node) ApplyDefaults()
type NodeOutput ¶
type Trigger ¶ added in v0.2.0
type Trigger struct {
IPFSSearch IPFSSearch `yaml:"ipfs-search"`
}
Click to show internal directories.
Click to hide internal directories.