builtin

package
v0.0.0-...-6aa3238 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEncoder deprecated

type DefaultEncoder struct {
}

DefaultEncoder implementation for EncodedConn. This encoder will leave []byte and string untouched, but will attempt to turn numbers into appropriate strings that can be decoded. It will also properly encoded and decode bools. If will encode a struct, but if you want to properly handle structures you should use JsonEncoder.

Deprecated: Encoded connections are no longer supported.

func (*DefaultEncoder) Decode deprecated

func (je *DefaultEncoder) Decode(subject string, data []byte, vPtr any) error

Decode

Deprecated: Encoded connections are no longer supported.

func (*DefaultEncoder) Encode deprecated

func (je *DefaultEncoder) Encode(subject string, v any) ([]byte, error)

Encode

Deprecated: Encoded connections are no longer supported.

type GobEncoder deprecated

type GobEncoder struct {
}

GobEncoder is a Go specific GOB Encoder implementation for EncodedConn. This encoder will use the builtin encoding/gob to Marshal and Unmarshal most types, including structs.

Deprecated: Encoded connections are no longer supported.

func (*GobEncoder) Decode deprecated

func (ge *GobEncoder) Decode(subject string, data []byte, vPtr any) (err error)

Decode

Deprecated: Encoded connections are no longer supported.

func (*GobEncoder) Encode deprecated

func (ge *GobEncoder) Encode(subject string, v any) ([]byte, error)

Encode

Deprecated: Encoded connections are no longer supported.

type JsonEncoder deprecated

type JsonEncoder struct {
}

JsonEncoder is a JSON Encoder implementation for EncodedConn. This encoder will use the builtin encoding/json to Marshal and Unmarshal most types, including structs.

Deprecated: Encoded connections are no longer supported.

func (*JsonEncoder) Decode deprecated

func (je *JsonEncoder) Decode(subject string, data []byte, vPtr any) (err error)

Decode

Deprecated: Encoded connections are no longer supported.

func (*JsonEncoder) Encode deprecated

func (je *JsonEncoder) Encode(subject string, v any) ([]byte, error)

Encode

Deprecated: Encoded connections are no longer supported.

Jump to

Keyboard shortcuts

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