signalk

package
Version: v0.0.0-...-a4d85f0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delta

type Delta struct {
	Context string   `json:"context,omitempty"`
	Updates []Update `json:"updates"`
}

Delta as specified in https://signalk.org/specification/1.4.0/doc/data_model.html

type Full

type Full struct {
	Version string            `json:"version"`
	Self    string            `json:"self"`
	Vessels map[string]Vessel `json:"vessels"`
}

Full as specified in https://signalk.org/specification/1.4.0/doc/data_model.html

func NewFull

func NewFull(self string) *Full

NewFull creates a Full model

func (*Full) AddValue

func (full *Full) AddValue(value Value)

AddValue adds a value to the Full model

type Source

type Source struct {
	Label    string `json:"label"`
	Type     string `json:"type"`
	Talker   string `json:"talker,omitempty"`
	Sentence string `json:"sentence,omitempty"`
	AisType  uint8  `json:"aisType,omitempty"`
}

Source is part of an Update

type Update

type Update struct {
	Source    Source  `json:"source"`
	Timestamp string  `json:"timestamp"`
	Values    []Value `json:"values"`
}

Update is part of a Delta

type Value

type Value struct {
	Context string                    `json:"context,omitempty"`
	Path    []string                  `json:"path"`
	Value   nanomsg.MappedDataCreator `json:"value"`
}

Value is part of an Update

type Vessel

type Vessel struct {
	// contains filtered or unexported fields
}

Vessel element of a Full model

func (*Vessel) AddValue

func (vessel *Vessel) AddValue(value Value)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL