encoder

package
v1.6.0-rc Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IEncoder

type IEncoder interface {
	// Encode takes an object and returns encoded bytes or error
	Encode(obj interface{}) ([]byte, error)
	// Decode takes an object and bytes to store decoded data in object, returns error if fails
	Decode(data []byte, v interface{}) error
}

IEncoder has the responsibility to consistently encode/ decode objects for backwards compatibility

Directories

Path Synopsis
eth

Jump to

Keyboard shortcuts

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