tool

package
v0.0.0-...-84efe38 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStructToPayloadEncoder

type IStructToPayloadEncoder interface {
	Encode() ([]byte, error)
	SetPayload(p interface{})
}

IStructToPayloadEncoder enables struct to be payload encoder.

Encode returns byte array, and error (which can be nil in case if there is no error)

func GetPayloadEncoder

func GetPayloadEncoder(p interface{}) *IStructToPayloadEncoder

GetPayloadEncoder returns encoder (as singleton) which can encode given object

Jump to

Keyboard shortcuts

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