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" )
Define all global flag names
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"` }
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.