conf

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

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