client

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCandidate

func NewCandidate(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Candidate, jsonrpc.ClientCloser, error)

NewCandidate creates a new http jsonrpc client for candidate

func NewCommonRPCV0

func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Common, jsonrpc.ClientCloser, error)

NewCommonRPCV0 creates a new http jsonrpc client.

func NewEdge

func NewEdge(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Edge, jsonrpc.ClientCloser, error)

func NewHTTP3Client added in v0.1.11

func NewHTTP3Client() *http.Client

func NewHTTP3ClientWithPacketConn added in v0.1.11

func NewHTTP3ClientWithPacketConn(tansport *quic.Transport) (*http.Client, error)

NewHTTP3ClientWithPacketConn new http3 client for nat trave

func NewLocator

func NewLocator(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Locator, jsonrpc.ClientCloser, error)

func NewScheduler

func NewScheduler(ctx context.Context, addr string, requestHeader http.Header, opts ...jsonrpc.Option) (api.Scheduler, jsonrpc.ClientCloser, error)

NewScheduler creates a new http jsonrpc client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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