marshaler

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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 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