client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallError

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

func (*CallError) Error

func (c *CallError) Error() string

type CallOption

type CallOption func(*CallOptions)

func Context

func Context(c context.Context) CallOption

Context sets the context to be used for a call. Defaults to context.Background()

type CallOptions

type CallOptions struct {
	Context context.Context
}

CallOptions represents configuration that apply to a single call

type Client

type Client interface {
	Call(ctx context.Context, service string, path string, req interface{}, resp interface{}, opts ...CallOption) error
}

func NewClient

func NewClient(opts *options.Options) Client

Jump to

Keyboard shortcuts

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