internal

package
v0.0.0-...-cf493b0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

func IsRespError

func IsRespError(r *http.Response) bool

func IsValidPath

func IsValidPath(path string) bool

func MakeServerFromMux

func MakeServerFromMux(mux http.Handler) *http.Server

Set timeouts so that a slow or malicious client doesn't hold resources forever

func NewBasicClient

func NewBasicClient() http.Client

func NewTlsClient

func NewTlsClient() http.Client

func RunInternalServer

func RunInternalServer(srv *http.Server, addr string, service string)

func RunPublicServer

func RunPublicServer(srv *http.Server, addr string, service string)

func WriteResponse

func WriteResponse(w http.ResponseWriter, message string, status int)

Types

This section is empty.

Directories

Path Synopsis
db
orm

Jump to

Keyboard shortcuts

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