apiClient

package
v0.0.0-...-556b52b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient interface {
	Get(path string) (out interface{}, err error)
	Post(path string, input interface{}) (out interface{}, err error)
	Delete(path string, input interface{}) (out interface{}, err error)
	Put(path string, input interface{}) (out interface{}, err error)
	Patch(path string, input interface{}) (out interface{}, err error)
	SetToken(token string)
}

func New

func New(host string) (ApiClient, error)

func NewWithToken

func NewWithToken(host string, token string) (ApiClient, error)

New

type ApiClientImpl

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

func (*ApiClientImpl) Delete

func (c *ApiClientImpl) Delete(path string, input interface{}) (out interface{}, err error)

func (*ApiClientImpl) Get

func (c *ApiClientImpl) Get(path string) (out interface{}, err error)

func (*ApiClientImpl) Patch

func (c *ApiClientImpl) Patch(path string, input interface{}) (out interface{}, err error)

func (*ApiClientImpl) Post

func (c *ApiClientImpl) Post(path string, input interface{}) (out interface{}, err error)

func (*ApiClientImpl) Put

func (c *ApiClientImpl) Put(path string, input interface{}) (out interface{}, err error)

func (*ApiClientImpl) SetToken

func (c *ApiClientImpl) SetToken(token string)

Jump to

Keyboard shortcuts

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