database

package
v0.0.0-...-5dff866 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultCassandraKeyspace sets the keyspace for cassandra
	DefaultCassandraKeyspace = "authentication"

	// DefaultCassandraConns sets the default connections for cassandra pool
	DefaultCassandraConns = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CassandraKeyspace string   `toml:"cassandra-keyspace"`
	CassandraConns    int      `toml:"cassandra-num-connections"`
	CassandraNodes    []string `toml:"cassandra-peers"`
}

Config represents the meta configuration.

func NewConfig

func NewConfig() *Config

NewConfig builds a new configuration with default values.

Jump to

Keyboard shortcuts

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