app

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package app holds application-global state to make it accessible by other packages in the application.

This package differs from config in that the things in app aren't really related to server configuration.

Index

Constants

View Source
const (
	// Name is the program name
	Name = "Caddy"

	// Version is the program version
	Version = "0.7.3"
)

Variables

View Source
var (
	// Servers is a list of all the currently-listening servers
	Servers []*server.Server

	// ServersMutex protects the Servers slice during changes
	ServersMutex sync.Mutex

	// Wg is used to wait for all servers to shut down
	Wg sync.WaitGroup

	// Http2 indicates whether HTTP2 is enabled or not
	Http2 bool // TODO: temporary flag until http2 is standard

	// Quiet mode hides non-error initialization output
	Quiet bool
)

Functions

func SetCPU

func SetCPU(cpu string) error

SetCPU parses string cpu and sets GOMAXPROCS according to its value. It accepts either a number (e.g. 3) or a percent (e.g. 50%).

Types

This section is empty.

Jump to

Keyboard shortcuts

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