config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config provides the main configuration

Index

Constants

View Source
const (
	DefaultListenHTTP        = ":80"
	DefaultKeepaliveInterval = 30 * time.Second
)

Defines default config settings

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenHTTP        string
	Limit             rate.Limit
	LimitBurst        int
	KeepaliveInterval time.Duration
	ManagerInterval   time.Duration
}

Config is the main config struct for the application. Use New to instantiate a default config struct.

func New

func New(listenHTTP string) *Config

New instantiates a default new config

Jump to

Keyboard shortcuts

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