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 ¶
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 (*Config) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.