apiclient

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 7 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 struct {
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(timeout time.Duration) *ApiClient

func (*ApiClient) Post

func (c *ApiClient) Post(url string, body string, headers map[string]string) ([]byte, error)

func (*ApiClient) PostWithStreaming

func (c *ApiClient) PostWithStreaming(url string, body string, headers map[string]string, parser models.ProviderStreamParser) <-chan models.StreamResponse

type IhttpClient

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳