rpc

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointRequester

type EndpointRequester interface {
	SendRequest(ctx context.Context, method string, params interface{}, reply interface{}, options ...Option) error
}

func NewEndpointRequester

func NewEndpointRequester(uri, endpoint, base string) EndpointRequester

type Option added in v1.7.11

type Option func(*Options)

func WithHeader added in v1.7.11

func WithHeader(key, val string) Option

func WithQueryParam added in v1.7.11

func WithQueryParam(key, val string) Option

type Options added in v1.7.11

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions added in v1.7.11

func NewOptions(ops []Option) *Options

func (*Options) Headers added in v1.7.11

func (o *Options) Headers() http.Header

func (*Options) QueryParams added in v1.7.11

func (o *Options) QueryParams() url.Values

Jump to

Keyboard shortcuts

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