marshaler

package
v3.16.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalCommand

func MarshalCommand(t Type, msg proto.Message) ([]byte, error)

MarshalCommand marshals the given command.

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 (
	Protobuf Type = iota
	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