client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MASSDRIVER_ENDPOINT = "https://api.massdriver.cloud"
)

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type MassdriverClient

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

func NewClient

func NewClient() *MassdriverClient

func (*MassdriverClient) Do

func (c *MassdriverClient) Do(req *Request) (*http.Response, error)

func (*MassdriverClient) WithApiKey

func (c *MassdriverClient) WithApiKey(apiKey string) *MassdriverClient

func (*MassdriverClient) WithEndpoint

func (c *MassdriverClient) WithEndpoint(endpoint string) *MassdriverClient

type Request

type Request struct {
	Method string
	Path   string
	Body   io.Reader
}

func NewRequest

func NewRequest(method string, path string, body io.Reader) *Request

Jump to

Keyboard shortcuts

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