format

package
v3.1.7-near-hf Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 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