Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToMongo ¶
ConnectToMongo connect to Mongo in a robust manner
Types ¶
type Datasource ¶
type Datasource struct { Type string `json:"type"` Host string `json:"host"` Port string `json:"port"` TimeoutMs int `json:"timeout_ms"` TimestampField string `json:"timestamp_field"` TimestampFormat string `json:"timestamp_format"` TimestampFormatJulia string `json:"timestamp_format_julia"` TopicPrefix string `json:"topic_prefix"` Topics []string `json:"topics"` Metadata struct { Window struct { Limit struct { Upper int `json:"upper"` Lower int `json:"lower"` } `json:"limit"` ScaleFactor float64 `json:"scale_factor"` } `json:"window"` Join interface{} `json:"join"` Etl []struct { Operation string `json:"operation"` Name string `json:"name"` Parameters interface{} `json:"parameters,omitempty"` PullFields bool `json:"pull_fields,omitempty"` } `json:"etl"` } `json:"metadata"` Replication struct { Type string `json:"type"` Host string `json:"host"` Username string `json:"username"` Password string `json:"password"` Database string `json:"database"` } `json:"replication"` }
Click to show internal directories.
Click to hide internal directories.