Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct { Deltas []Mapped `json:"deltas"` // contains filtered or unexported fields }
func (Buffer) MarshalJSON ¶
type Mapped ¶
type Mapped struct { Context string `json:"context"` // indicates what the data is about Origin string `json:"origin"` // indicates the creator of the data Updates []Update `json:"updates"` }
func (*Mapped) WithContext ¶
func (*Mapped) WithOrigin ¶
type Raw ¶
type Raw struct { Collector string Timestamp time.Time `json:"timestamp"` Type string `json:"type"` Uuid uuid.UUID `json:"uuid"` Value []byte `json:"value"` }
func (Raw) MarshalJSON ¶
func (*Raw) UnmarshalJSON ¶
func (*Raw) WithCollector ¶
type RawExtraInfo ¶
type RawExtraInfo interface{}
type Update ¶
type Update struct { Source Source `json:"source"` Timestamp time.Time `json:"timestamp"` Values []Value `json:"values"` }
func (*Update) WithSource ¶
type Value ¶
type Value struct { Path string `json:"path"` Uuid uuid.UUID `json:"uuid"` Value interface{} `json:"value"` }
func (Value) MarshalJSON ¶
func (*Value) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.