utils

package
v0.0.0-...-9920d4e Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitNumClients

func LimitNumClients(f http.HandlerFunc, maxClients int) http.HandlerFunc

LimitNumClients is HTTP handling middleware that ensures no more than maxClients requests are passed concurrently to the given handler f.

func PanicIf

func PanicIf(err error)

Types

type AppConfig

type AppConfig struct {
	File *ini.File
	Port string
}

func LoadConfig

func LoadConfig() *AppConfig

Jump to

Keyboard shortcuts

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