api

package
v0.0.0-...-91a5361 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func New

func New(apiEndPoint, apiToken string) (*API, error)

func (*API) Delete

func (A *API) Delete(url string, dest any) error

func (*API) Get

func (A *API) Get(url string, dest any) error

func (*API) Post

func (A *API) Post(url string, data []byte, dest any) error

func (*API) Put

func (A *API) Put(url string, data []byte, dest any) error

func (*API) Request

func (A *API) Request(method, url string, data []byte, dest any) error

Jump to

Keyboard shortcuts

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