client

package
v1.26.0-data-model.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: BSD-2-Clause Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg *Config) (*Client, error)

func (*Client) AppendURLQuery

func (c *Client) AppendURLQuery(urlString string, query map[string]string) string

func (*Client) ConstructURL

func (c *Client) ConstructURL(paths ...string) string

func (*Client) SendRequest

func (c *Client) SendRequest(ctx context.Context, method string, url string, mutators []request.Mutator, requestBody interface{}, responseBody interface{}, httpClient *http.Client) error

type Config

type Config struct {
	Address   string
	UserAgent string
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configReporter config.Reporter) error

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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