customencoding

package
v0.0.0-...-a5d487a Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package customencoding is a testing custom encoding for the integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMarshal

func JSONMarshal(msg drpc.Message) ([]byte, error)

JSONMarshal returns the json encoded form of msg.

func JSONUnmarshal

func JSONUnmarshal(buf []byte, msg drpc.Message) error

JSONUnmarshal reads the json encoded form of some Message into msg. The buf is expected to contain only a single complete Message.

func Marshal

func Marshal(msg drpc.Message) ([]byte, error)

Marshal returns the encoded form of msg.

func Unmarshal

func Unmarshal(buf []byte, msg drpc.Message) error

Unmarshal reads the encoded form of some Message into msg. The buf is expected to contain only a single complete Message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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