Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabase ¶
GetDatabase returns the Atomix database
Types ¶
type Config ¶
type Config struct { // Controller is the Atomix controller address Controller string `yaml:"controller,omitempty"` // Namespace is the Atomix namespace Namespace string `yaml:"namespace,omitempty"` // Scope is the Atomix client/application scope Scope string `yaml:"scope,omitempty"` // Databases is a mapping of database types to databases Databases map[DatabaseType]string `yaml:"databases"` }
Config is the Atomix configuration
func (Config) GetController ¶
GetController gets the Atomix controller address
func (Config) GetDatabase ¶
func (c Config) GetDatabase(databaseType DatabaseType) string
GetDatabase gets the database name for the given database type
func (Config) GetNamespace ¶
GetNamespace gets the Atomix client namespace
type DatabaseType ¶
type DatabaseType string
DatabaseType is the type of a database
const ( // DatabaseTypeConsensus indicates a consensus database DatabaseTypeConsensus DatabaseType = "consensus" // DatabaseTypeCache indicates a cache database DatabaseTypeCache DatabaseType = "cache" // DatabaseTypeTimeSeries indicates a time series database DatabaseTypeTimeSeries DatabaseType = "timeSeries" // DatabaseTypeRelational indicates a relational database DatabaseTypeRelational DatabaseType = "relational" )
Click to show internal directories.
Click to hide internal directories.