client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlpaconClient

type AlpaconClient struct {
	HTTPClient *http.Client
	BaseURL    string
	Token      string
}

func NewAlpaconAPIClient

func NewAlpaconAPIClient() (*AlpaconClient, error)

func (*AlpaconClient) SendDeleteRequest added in v0.0.2

func (ac *AlpaconClient) SendDeleteRequest(url string) ([]byte, error)

func (*AlpaconClient) SendGetRequest

func (ac *AlpaconClient) SendGetRequest(url string) ([]byte, error)

Get Request to Alpacon Server

func (*AlpaconClient) SendMultipartRequest

func (ac *AlpaconClient) SendMultipartRequest(url string, multiPartWriter *multipart.Writer, body bytes.Buffer) error

func (*AlpaconClient) SendPostRequest

func (ac *AlpaconClient) SendPostRequest(url string, params interface{}) ([]byte, error)

POST Request to Alpacon Server

type CheckAuthResponse

type CheckAuthResponse struct {
	Authenticated bool `json:"authenticated"`
}

Jump to

Keyboard shortcuts

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