status

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package status provides a funcions for managing Ruptela status payloads.

Package status holds decoding functions for Ruptela status payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeStatusSignals

func DecodeStatusSignals(msgBytes []byte) ([]vss.Signal, error)

DecodeStatusSignals decodes a status message into a slice of signals.

func NameFromV2Signal

func NameFromV2Signal(sigResult gjson.Result) (string, error)

NameFromV2Signal gets a name from a V2 signal.

func SignalsFromLocationPayload

func SignalsFromLocationPayload(jsonData []byte) ([]vss.Signal, error)

SignalsFromLocationPayload extracts signals from a V2 payload.

func SignalsFromV1Payload

func SignalsFromV1Payload(jsonData []byte) ([]vss.Signal, error)

SignalsFromV1Payload gets a slice signals from a v1 payload.

func SourceFromData

func SourceFromData(jsonData []byte) (string, error)

SourceFromData gets a source from a V2 payload.

func SubjectFromV1Data

func SubjectFromV1Data(jsonData []byte) (string, error)

SubjectFromV1Data gets a subject from a v1 payload.

func TimestampFromLocationSignal

func TimestampFromLocationSignal(sigResult gjson.Result) (time.Time, error)

TimestampFromLocationSignal gets a timestamp from a V2 signal.

func TimestampFromV1Data

func TimestampFromV1Data(jsonData []byte) (time.Time, error)

TimestampFromV1Data gets a timestamp from a v1 payload.

func TokenIDFromData

func TokenIDFromData(jsonData []byte) (uint32, error)

TokenIDFromData gets a tokenID from a V2 payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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