config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseType               string
	DatabasePath               string
	DatabaseOptions            map[string]interface{}
	ReplicationType            string
	ReplicationOptions         map[string]interface{}
	ListenHost                 string
	ListenPort                 string
	ReadOnly                   bool
	Timeout                    time.Duration
	LoadSize                   int
	RequiresHTTPRequestContext bool
}

Config defines the behavior of cayley database instances.

func Load

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

Load reads a JSON-encoded config contained in the given file. A zero value config is returned if the filename is empty.

func (*Config) MarshalJSON

func (c *Config) MarshalJSON() ([]byte, error)

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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