status

package
v0.4.5 Latest Latest
Warning

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

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

Documentation

Overview

Package status provides a functions for managing Autopi status payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NameFromV2Signal

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

NameFromV2Signal gets a name from a V2 signal.

func SignalsFromV1Payload

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

SignalsFromV1Payload gets a slice signals from a v1 payload.

func SignalsFromV2Payload

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

SignalsFromV2Payload extracts signals from a V2 payload.

func SubjectFromV1Data

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

SubjectFromV1Data gets a subject from a v1 payload.

func TimestampFromV1Data

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

TimestampFromV1Data gets a timestamp from a v1 payload.

func TimestampFromV2Signal

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

TimestampFromV2Signal gets a timestamp from a V2 signal.

func TokenIDFromV1Data

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

TokenIDFromV1Data gets a tokenID from a v1 payload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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