apiclient

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient interface {
	GET(host string, path string, token string) (interface{}, error)
	POST(host string, path string, token string) (interface{}, error)
}

func NewApiClient

func NewApiClient() ApiClient

type DefaultApiClient

type DefaultApiClient struct {
	Client *http.Client
}

func (DefaultApiClient) GET

func (c DefaultApiClient) GET(host string, path string, token string) (interface{}, error)

func (DefaultApiClient) POST

func (c DefaultApiClient) POST(host string, path string, token string) (interface{}, error)

Jump to

Keyboard shortcuts

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