util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxBytesBody = 1048576

Variables

This section is empty.

Functions

func DecodeJSONBody

func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error

func IsValidPortAsInt added in v0.2.0

func IsValidPortAsInt(port int32) bool

func IsValidPortAsStr added in v0.2.0

func IsValidPortAsStr(port string) bool

Types

type MalformedRequest

type MalformedRequest struct {
	Status int
	Msg    string
}

func (*MalformedRequest) Error

func (mr *MalformedRequest) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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