Documentation
¶
Index ¶
- func NewCandidate(ctx context.Context, addr string, requestHeader http.Header, ...) (api.Candidate, jsonrpc.ClientCloser, error)
- func NewCommonRPCV0(ctx context.Context, addr string, requestHeader http.Header) (api.Common, jsonrpc.ClientCloser, error)
- func NewEdge(ctx context.Context, addr string, requestHeader http.Header) (api.Edge, jsonrpc.ClientCloser, error)
- func NewEdgeWithHTTPClient(ctx context.Context, addr string, requestHeader http.Header, ...) (api.Edge, jsonrpc.ClientCloser, error)
- func NewLocator(ctx context.Context, addr string, requestHeader http.Header) (api.Locator, jsonrpc.ClientCloser, error)
- func NewScheduler(ctx context.Context, addr string, requestHeader http.Header) (api.Scheduler, jsonrpc.ClientCloser, error)
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) (api.Common, jsonrpc.ClientCloser, error)
NewCommonRPCV0 creates a new http jsonrpc client.
func NewEdgeWithHTTPClient ¶
func NewEdgeWithHTTPClient(ctx context.Context, addr string, requestHeader http.Header, httpClient *http.Client) (api.Edge, jsonrpc.ClientCloser, error)
custom http client for edge client
func NewLocator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.