processors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FenceData

type FenceData struct {
	H3Indexes []string `json:"h3Indexes"`
}

type Privacy

type Privacy struct {
	Group        goka.Group
	StatusInput  goka.Stream
	FenceTable   goka.Table
	StatusOutput goka.Stream

	Logger *zerolog.Logger
}

func (*Privacy) Define

func (g *Privacy) Define() *goka.GroupGraph

type PrivacyV2 added in v0.2.1

type PrivacyV2 struct {
	Group        goka.Group
	StatusInput  goka.Stream
	FenceTable   goka.Table
	StatusOutput goka.Stream

	Logger *zerolog.Logger
}

func (*PrivacyV2) DefineV2 added in v0.2.1

func (g *PrivacyV2) DefineV2() *goka.GroupGraph

type SignalData added in v0.2.1

type SignalData struct {
	// Timestamp is in unix millis, when signal was queried
	Timestamp int64  `json:"timestamp,omitempty"`
	Name      string `json:"name,omitempty"`
	Value     any    `json:"value,omitempty"`
}

type StatusData

type StatusData struct {
	Latitude   *float64       `json:"latitude"`
	Longitude  *float64       `json:"longitude"`
	IsRedacted *bool          `json:"isRedacted"`
	Overflow   map[string]any `json:"-"`
}

func (*StatusData) MarshalJSON

func (d *StatusData) MarshalJSON() ([]byte, error)

func (*StatusData) UnmarshalJSON

func (d *StatusData) UnmarshalJSON(data []byte) error

type StatusEventV2 added in v0.2.1

type StatusEventV2[A any] struct {
	shared.CloudEvent[A]
	Signature string `json:"signature"`
}

type StatusV2Data added in v0.2.1

type StatusV2Data struct {
	// Timestamp is in unix millis, when payload was sent
	Timestamp int64                  `json:"timestamp,omitempty"`
	Device    map[string]interface{} `json:"device,omitempty"`
	Vehicle   Vehicle                `json:"vehicle,omitempty"`
}

type Vehicle added in v0.2.1

type Vehicle struct {
	Make    string       `json:"make,omitempty"`
	Model   string       `json:"model,omitempty"`
	Year    int          `json:"year,omitempty"`
	Signals []SignalData `json:"signals,omitempty"`
}

Jump to

Keyboard shortcuts

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