inference_data

package
v0.0.0-...-52ac1fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Entity  string          `json:"entity"`
	Key     string          `json:"string"`
	Details json.RawMessage `json:"details"`
	Created time.Time       `json:"created"`
}

type DataSourceConf

type DataSourceConf []*SourceConf

DB reprsentation of configuration of data sources for a study

type InferenceData

type InferenceData map[string]*InferenceDataRow

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 InferenceDataRow

type InferenceDataRow struct {
	User string                         `json:"user"`
	Data map[string]*InferenceDataValue `json:"data"`
}

type InferenceDataValue

type InferenceDataValue struct {
	Timestamp time.Time       `json:"timestamp"`
	Variable  string          `json:"variable"`
	Value     json.RawMessage `json:"value"`
	ValueType string          `json:"value_type"`
}

type IntermediateInferenceData

type IntermediateInferenceData map[string]InferenceData

type Source

type Source struct {
	StudyID     string
	Conf        *SourceConf
	Credentials *Credentials
}

type SourceConf

type SourceConf struct {
	Name           string          `json:"name"`
	Source         string          `json:"source"`
	Config         json.RawMessage `json:"config"`
	CredentialsKey string          `json:"credentials_key"`
}

type User

type User struct {
	ID       string                     `json:"id"`
	Metadata map[string]json.RawMessage `json:"metadata"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL