config

package
Version: v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2015 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 added in v0.3.1

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 added in v0.4.0

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 added in v0.4.0

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

func (*Config) UnmarshalJSON added in v0.4.0

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

Source Files

Jump to

Keyboard shortcuts

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