rpc

package
v0.0.0-...-10891e6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RpcParse

func RpcParse(resp []byte) error

func RpcQuery

func RpcQuery(URL string, opts ...RpcOption) ([]byte, error)

Types

type RpcConfig

type RpcConfig struct {
	Headers map[string]string
}

func NewConfig

func NewConfig(opts ...RpcOption) RpcConfig

type RpcOption

type RpcOption func(*RpcConfig)

RpcOption is a functional option.

func WithCustomHeaders

func WithCustomHeaders(key, value string) RpcOption

WithCustomHeaders sets headers of http request.

Jump to

Keyboard shortcuts

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