Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEvents ¶
func WriteEvents ¶
Types ¶
type Config ¶
type Config struct {
DB string `env:"PG_URL,required"` // postgres://user:password@host:port/db
}
type Connector ¶
type Connector interface {
Handler(source *Source, lastEvent *InferenceDataEvent) <-chan *InferenceDataEvent
}
type DataSourceConf ¶
type DataSourceConf []*SourceConf
DB reprsentation of configuration of data sources for a study
type InferenceDataEvent ¶
type InferenceDataEvent struct { User User `json:"user"` Study string `json:"study"` SourceConf *SourceConf `json:"source_conf"` Timestamp time.Time `json:"timestamp"` Variable string `json:"variable"` Value json.RawMessage `json:"value"` Idx int `json:"idx"` Pagination string `json:"pagination"` }
type Source ¶
type Source struct { StudyID string Conf *SourceConf }
type SourceConf ¶
type SourceConf struct { Name string `json:"name"` Source string `json:"source"` Config json.RawMessage `json:"config"` }
Click to show internal directories.
Click to hide internal directories.