conf

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package conf parses start up args and config file

Index

Constants

This section is empty.

Variables

View Source
var (
	// Admin
	ADMIN_EMAIL = ""
	ADMIN_USERS = ""
	AdminUsers  []string

	// Permissions for anonymous user
	ANON_READ   = true
	ANON_WRITE  = false
	ANON_DELETE = false

	// Address
	API_IP   = ""
	API_PORT = ""
	API_URL  = "" // for external address only

	// Auth
	AUTH_BASIC              = false
	AUTH_GLOBUS_TOKEN_URL   = ""
	AUTH_GLOBUS_PROFILE_URL = ""
	AUTH_MGRAST_OAUTH_URL   = ""

	// Default Chunksize for size virtual index
	CHUNK_SIZE int64 = 1048576

	// Config File
	CONFIG_FILE = ""

	// Runtime
	EXPIRE_WAIT = 60 // wait time for reaper in minutes
	GOMAXPROCS  = ""

	// Logs
	LOG_PERF   = false // Indicates whether performance logs should be stored
	LOG_ROTATE = true  // Indicates whether logs should be rotated daily

	// Mongo information
	MONGODB_HOSTS             = ""
	MONGODB_DATABASE          = ""
	MONGODB_USER              = ""
	MONGODB_PASSWORD          = ""
	MONGODB_ATTRIBUTE_INDEXES = ""

	// Node Indices
	NODE_IDXS map[string]idxOpts = nil

	// Paths
	PATH_SITE    = ""
	PATH_DATA    = ""
	PATH_LOGS    = ""
	PATH_LOCAL   = ""
	PATH_PIDFILE = ""

	// Reload
	RELOAD = ""

	// SSL
	SSL      = false
	SSL_KEY  = ""
	SSL_CERT = ""

	// Versions
	VERSIONS = make(map[string]int)
)

Functions

func Bool

func Bool(s string) bool

Bool is a convenience wrapper around strconv.ParseBool

func Initialize

func Initialize()

Initialize is an explicit init. Enables outside use of shock-server packages. Parses config and populates the conf variables.

func Print

func Print()

Print prints the configuration loads to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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