network

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeaders

func AddHeaders(args ...interface{}) interface{}

func DoRequest

func DoRequest(args ...interface{}) (interface{}, error)

func HandleRequestError

func HandleRequestError(args ...interface{}) (interface{}, error)

func ReadResponse

func ReadResponse(args ...interface{}) (interface{}, error)

Types

type HttpError

type HttpError struct {
	Status int
}

func (HttpError) Error

func (e HttpError) Error() string

type Request

type Request struct {
	Id         string
	Etag       string
	Language   string
	Subid      string
	Connection *sql.DB
}

type Result

type Result struct {
	Client   *http.Client
	Request  *http.Request
	Response *http.Response
	Body     []byte
	Etag     string
	Result   interface{}
}

Jump to

Keyboard shortcuts

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