helpers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStartLocation

func GetStartLocation(rxInfo []*gw.UplinkRXInfo) *common.Location

GetStartLocation returns the location of the gateway closest to the device in terms of SNR.

func GetTimeSinceGPSEpoch

func GetTimeSinceGPSEpoch(rxInfo []*gw.UplinkRXInfo) *time.Duration

GetTimeSinceGPSEpoch returns the time since GPS epoch if it is available in the uplink payload.

func GetTimestamp

func GetTimestamp(rxInfo []*gw.UplinkRXInfo) time.Time

GetTimestamp returns the RX timestamp.

Types

type EUI64

type EUI64 [8]byte

EUI64 defines the EUI64.

func (EUI64) MarshalText

func (b EUI64) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EUI64) UnmarshalText

func (b *EUI64) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

type HEXBytes

type HEXBytes []byte

HEXBytes defines a type which represents bytes as HEX when marshaled to text.

func (HEXBytes) MarshalText

func (hb HEXBytes) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (HEXBytes) String

func (hb HEXBytes) String() string

String implements fmt.Stringer.

func (*HEXBytes) UnmarshalText

func (hb *HEXBytes) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

Jump to

Keyboard shortcuts

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