config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBPath            string
	ReloadOntologies  bool
	DisableQueryCache bool

	// datasets to load
	Buildings map[string]string

	// ontologies to load
	Ontologies []string

	EnableHTTP     bool
	EnableBOSSWAVE bool

	ShowNamespaces         bool
	ShowDependencyGraph    bool
	ShowQueryPlan          bool
	ShowQueryPlanLatencies bool
	ShowOperationLatencies bool
	ShowQueryLatencies     bool
	LogLevel               logging.Level

	ServerPort    string
	UseIPv6       bool
	ListenAddress string
	StaticPath    string
	TLSHost       string

	BW2_AGENT          string
	BW2_DEFAULT_ENTITY string
	HodURI             string

	EnableCPUProfile   bool
	EnableMEMProfile   bool
	EnableBlockProfile bool
}

func ReadConfig

func ReadConfig(file string) (*Config, error)

func (*Config) Copy added in v0.6.0

func (cfg *Config) Copy() *Config

Jump to

Keyboard shortcuts

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