articlechs

package
v0.0.0-...-060dca9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Article-cassandra hybrid store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cassa

type Cassa struct {
	Keyspace string
	Hosts    []string
}

type Config

type Config struct {
	runner.Configuration
	Service   runner.Bind
	Cassandra Cassa
	Buckets   []string
}

Config data structure. To be parsed with confl.

# Memberlist/Cluster settings
bind {
	addr '0.0.0.0'
	port 7946
}
advertise {
	port 7946
}
name its_node_name
loc USA
rpc {
	port 63282
}
# Articlestore-service.
service {
	port 63300
}
# Cassandra-cluster
cassandra {
	keyspace mydb
	hosts [
		"192.168.1.1"
		"192.168.1.2"
		"192.168.1.3"
	]
}
# Predefined Bucket Locations
# Please only specify absolute paths.
buckets [
	/path/to/bucket
	'/second/bucket'
	"/third/bucket"
	'E:\bucket'
	"F:\bucket"
]

func (*Config) Load

func (bcfg *Config) Load(r io.Reader) error

func (*Config) LoadBytes

func (bcfg *Config) LoadBytes(b []byte) error

func (*Config) NCluster

func (bcfg *Config) NCluster() (*cluster.Deleg, error)

Jump to

Keyboard shortcuts

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