Back to

Package api

Latest Go to latest

The highest tagged major version is .

Published: Mar 9, 2020 | License: BSD-3-Clause | Module:


func NewAPIClient

func NewAPIClient() artisanalinteger.Client

type APIClient

type APIClient struct {
	BrooklynIntegersClient // see above

	Scheme   string
	Host     string
	Endpoint string
	// contains filtered or unexported fields

func (*APIClient) CreateInteger

func (client *APIClient) CreateInteger() (int64, error)

func (*APIClient) ExecuteMethod

func (client *APIClient) ExecuteMethod(method string, params *url.Values) (*APIResponse, error)

func (*APIClient) NextInt

func (client *APIClient) NextInt() (int64, error)

type APIError

type APIError struct {
	Code    int64
	Message string

func (*APIError) Error

func (e *APIError) Error() string

type APIResponse

type APIResponse struct {
	// contains filtered or unexported fields

func (*APIResponse) Error

func (rsp *APIResponse) Error() error

func (*APIResponse) Int

func (rsp *APIResponse) Int() (int64, error)

func (*APIResponse) Ok

func (rsp *APIResponse) Ok() (bool, error)

func (*APIResponse) Stat

func (rsp *APIResponse) Stat() string

type BrooklynIntegersClient

type BrooklynIntegersClient interface {
	CreateInteger() (int64, error)
	ExecuteMethod(string, *url.Values) (*APIResponse, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier