Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alarm ¶ added in v0.1.10
type Draft ¶ added in v0.1.47
type Length ¶
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) ToSingleValueMapped ¶ added in v0.1.20
func (m Mapped) ToSingleValueMapped() []SingleValueMapped
func (*Mapped) WithContext ¶
func (*Mapped) WithOrigin ¶
type Position ¶
type Raw ¶
type Raw struct { Connector string `json:"connector"` 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) WithConnector ¶ added in v0.1.49
type SingleValueMapped ¶ added in v0.1.20
type SingleValueMapped struct { Context string `json:"context"` Origin string `json:"origin"` Source Source `json:"source"` Timestamp time.Time `json:"timestamp"` Path string `json:"path"` Value interface{} `json:"value"` }
func NewSingleValueMapped ¶ added in v0.1.20
func NewSingleValueMapped() *SingleValueMapped
func (SingleValueMapped) Equals ¶ added in v0.1.20
func (s SingleValueMapped) Equals(other SingleValueMapped) bool
func (SingleValueMapped) Merge ¶ added in v0.1.23
func (left SingleValueMapped) Merge(right SingleValueMapped) SingleValueMapped
Merges left with right, if both left and right have the same property the value of the right property will be returned
func (SingleValueMapped) ToMapped ¶ added in v0.1.20
func (s SingleValueMapped) ToMapped() Mapped
func (*SingleValueMapped) UnmarshalJSON ¶ added in v0.1.23
func (s *SingleValueMapped) UnmarshalJSON(data []byte) error
type Source ¶
type Source struct { Label string `json:"label"` Type string `json:"type"` Uuid uuid.UUID `json:"uuid"` TransferUuid uuid.UUID `json:"transferUuid"` }
func (*Source) WithTransferUuid ¶ added in v0.1.51
type Update ¶
type Update struct { Source Source `json:"source"` Timestamp time.Time `json:"timestamp"` Values []Value `json:"values"` }
func (*Update) GetValueByPath ¶ added in v0.1.40
func (*Update) WithSource ¶
type Value ¶
type Value struct { Path string `json:"path"` Value interface{} `json:"value"` }
func (*Value) UnmarshalJSON ¶
type VesselInfo ¶ added in v0.1.23
type VesselType ¶ added in v0.1.25
Click to show internal directories.
Click to hide internal directories.