Documentation ¶
Overview ¶
Package status provides a funcions for managing Ruptela status payloads.
Package status holds decoding functions for Ruptela status payloads.
Index ¶
- func DecodeStatusSignals(msgBytes []byte) ([]vss.Signal, error)
- func NameFromV2Signal(sigResult gjson.Result) (string, error)
- func SignalsFromLocationPayload(jsonData []byte) ([]vss.Signal, error)
- func SignalsFromV1Payload(jsonData []byte) ([]vss.Signal, error)
- func SourceFromData(jsonData []byte) (string, error)
- func SubjectFromV1Data(jsonData []byte) (string, error)
- func TimestampFromLocationSignal(sigResult gjson.Result) (time.Time, error)
- func TimestampFromV1Data(jsonData []byte) (time.Time, error)
- func TokenIDFromData(jsonData []byte) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeStatusSignals ¶
DecodeStatusSignals decodes a status message into a slice of signals.
func NameFromV2Signal ¶
NameFromV2Signal gets a name from a V2 signal.
func SignalsFromLocationPayload ¶
SignalsFromLocationPayload extracts signals from a V2 payload.
func SignalsFromV1Payload ¶
SignalsFromV1Payload gets a slice signals from a v1 payload.
func SourceFromData ¶
SourceFromData gets a source from a V2 payload.
func SubjectFromV1Data ¶
SubjectFromV1Data gets a subject from a v1 payload.
func TimestampFromLocationSignal ¶
TimestampFromLocationSignal gets a timestamp from a V2 signal.
func TimestampFromV1Data ¶
TimestampFromV1Data gets a timestamp from a v1 payload.
func TokenIDFromData ¶
TokenIDFromData gets a tokenID from a V2 payload.
Types ¶
This section is empty.