vars

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package vars defines the configuration variables and default values for piladb.

Index

Constants

View Source
const (
	// MaxStackSize is the maximun number
	// of elements that a stack can contain.
	MaxStackSize = "MAX_STACK_SIZE"
	// MaxStackSizeDefault represents the default value
	// of MaxStackSize.
	MaxStackSizeDefault = -1

	// ReadTimeout is the maximun duration
	// before timing out the read of a request
	// to pilad.
	ReadTimeout = "READ_TIMEOUT"
	// ReadTimeoutDefault represents the default value
	// of ReadTimeout.
	ReadTimeoutDefault = 30

	// WriteTimeout is the maximun duration
	// before timing out the write of a response
	// from pilad.
	WriteTimeout = "WRITE_TIMEOUT"
	// WriteTimeoutDefault represents the default value
	// of WriteTimeout.
	WriteTimeoutDefault = 45

	// Port is the TCP port number where pilad
	// is running. Port number range is 1025-65536.
	Port = "PORT"
	// PortDefault represents the default value
	// of Port.
	PortDefault = 1205
)

Variables

This section is empty.

Functions

func DefaultInt

func DefaultInt(name string) int

DefaultInt returns the default value of a config name of int type.

func Env

func Env(name string) string

Env returns the environment variable name given a config name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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