internal

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, h *http.Client) (*[]byte, error)

func GetJSON

func GetJSON(url string, h *http.Client, target interface{}) error

Does a request and unmarshals the request into target.

func GetReadCloser

func GetReadCloser(url string, h *http.Client) (io.ReadCloser, error)

func GetXML

func GetXML(url string, h *http.Client, target interface{}) error

func NewHTTPError

func NewHTTPError(code int) error

Types

type HTTPError

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

func (*HTTPError) Code

func (e *HTTPError) Code() int

func (*HTTPError) Error

func (e *HTTPError) Error() string

type NoLogger

type NoLogger struct{}

func (*NoLogger) Printf

func (n *NoLogger) Printf(_ string, _ ...interface{})

Jump to

Keyboard shortcuts

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