general

package
v0.0.0-...-060e9e3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_OPEN_CONNS = 250

Variables

This section is empty.

Functions

func MakeHTTPRequest

func MakeHTTPRequest[R any, A any](ctx context.Context, method, url string, request *R) (*A, error)

Types

type Endpoint

type Endpoint func(w http.ResponseWriter, r *http.Request)

type Pgsql

type Pgsql struct {
	*sql.DB
}

func NewPgsql

func NewPgsql(connectionString string) *Pgsql

type ResponseStatus

type ResponseStatus string
const (
	StatusOK    ResponseStatus = "ok"
	StatusError ResponseStatus = "error"
)

Jump to

Keyboard shortcuts

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