client

package
v0.0.0-...-351bd47 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "http://104.236.132.232" // TODO(btc): setup a domain like http://api.foo.ai
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...Option) *api.Services

Types

type APIClient

type APIClient struct {
	BaseURL string
	// contains filtered or unexported fields
}

func (*APIClient) ParseBaseURL

func (c *APIClient) ParseBaseURL(s string) error

type Option

type Option func(*APIClient)

func BaseURL

func BaseURL(s string) Option

func HTTPClient

func HTTPClient(httpClient *http.Client) Option

Jump to

Keyboard shortcuts

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