Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigFile = "./config.json" DefaultVerbosity = 5 DestinationTypeS3 = "S3" SourceTypeRestAPI = "RestAPI" )
Variables ¶
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
Runtime RuntimeConfig
Source SourceConfig
Destination DestinationConfig
Alert alert.Config
Sets []Set
}
func LoadConfig ¶
LoadConfig looks for a config file if one is provided. Otherwise, it looks for a config file based on the CONFIG_PATH env var. If that is not set, it gets the default config file ("./config.json").
func (*AppConfig) MaxSetNameLength ¶
type Destination ¶
type Destination interface {
ForSet(setName string, setJson json.RawMessage) error
Write(data []byte, activityLog chan<- EventLogItem) error
}
type DestinationConfig ¶
type DestinationConfig struct {
Type string
AdapterConfig json.RawMessage
}
type EmptyDestination ¶
type EmptyDestination struct{}
func (*EmptyDestination) ForSet ¶
func (e *EmptyDestination) ForSet(setJson json.RawMessage) error
type EmptySource ¶
type EmptySource struct{}
func (*EmptySource) ForSet ¶
func (e *EmptySource) ForSet(setJson json.RawMessage) error
type EventLogItem ¶
func (EventLogItem) String ¶
func (l EventLogItem) String() string
type RuntimeConfig ¶
type RuntimeConfig struct {
DryRunMode bool
}
type Set ¶
type Set struct {
Name string
Source json.RawMessage
Destination json.RawMessage
}
type SourceConfig ¶
type SourceConfig struct {
Type string
AdapterConfig json.RawMessage
}
Click to show internal directories.
Click to hide internal directories.