marshaler

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDownlinkFrame

func MarshalDownlinkFrame(t Type, df gw.DownlinkFrame) ([]byte, error)

MarshalDownlinkFrame marshals the given DownlinkFrame.

func MarshalGatewayConfiguration

func MarshalGatewayConfiguration(t Type, gc gw.GatewayConfiguration) ([]byte, error)

MarshalGatewayConfiguration marshals the GatewayConfiguration.

Types

type Type

type Type int

Type defines the marshaler type.

const (
	V2JSON Type = iota
	Protobuf
	JSON
)

Marshaler types.

func UnmarshalDownlinkTXAck

func UnmarshalDownlinkTXAck(b []byte, ack *gw.DownlinkTXAck) (Type, error)

UnmarshalDownlinkTXAck unmarshals a DownlinkTXAck.

func UnmarshalGatewayStats

func UnmarshalGatewayStats(b []byte, stats *gw.GatewayStats) (Type, error)

UnmarshalGatewayStats unmarshals an GatewayStats.

func UnmarshalUplinkFrame

func UnmarshalUplinkFrame(b []byte, uf *gw.UplinkFrame) (Type, error)

UnmarshalUplinkFrame unmarshals an UplinkFrame.

Jump to

Keyboard shortcuts

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