client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorNotFound = &ClientError{fmt.Errorf("not found")}

Functions

This section is empty.

Types

type APIClient

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

func NewAPIClient

func NewAPIClient(conf Config) (*APIClient, error)

func (*APIClient) DoDELETE

func (c *APIClient) DoDELETE(path string) error

func (*APIClient) DoGET

func (c *APIClient) DoGET(path string) ([]byte, error)

func (*APIClient) DoPOST

func (c *APIClient) DoPOST(path string, data interface{}) ([]byte, error)

func (*APIClient) DoPUT

func (c *APIClient) DoPUT(path string, data interface{}) ([]byte, error)

func (*APIClient) People

func (c *APIClient) People() *peopleClient

func (*APIClient) Pet

func (c *APIClient) Pet() *petsClient

type ClientError

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

type Config

type Config struct {
	Endpoint string
}

Jump to

Keyboard shortcuts

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