format

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDFieldName    = "id"
	DefaultIDValue = 1
)

Variables

This section is empty.

Functions

func FormatterForRelayRequestAndResponse

func FormatterForRelayRequestAndResponse(apiInterface string) (inputFormatter func([]byte) []byte, outputFormatter func([]byte) []byte)

input formatter works on the input data

func FormatterForRelayRequestAndResponseJsonRPC

func FormatterForRelayRequestAndResponseJsonRPC() (inputFormatter func([]byte) []byte, outputFormatter func([]byte) []byte)

removing ID from the request so we have cache matches when id is changing

func IdentityFormatter

func IdentityFormatter() (inputFormatter func([]byte) []byte, outputFormatter func([]byte) []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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