protojson

package
v0.0.0-...-a2eab4f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(d *json.Decoder, m proto.Message) error

Decode reads a JSON message from the JSON decoder and unmarshals it (see Unmarshal).

func Marshal

func Marshal(m proto.Message) ([]byte, error)

Marshal marshals the proto message using the default options for Packet Broker.

func Unmarshal

func Unmarshal(b []byte, m proto.Message) error

Unmarshal unmarshals the proto message using the default options for Packet Broker.

func Write

func Write(w io.Writer, m proto.Message) error

Write marshals the proto message (see Marshal) and writes it to the given writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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