Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReplicationClassNetworkTopologyStrategy = "org.apache.cassandra.locator.NetworkTopologyStrategy" ReplicationClassSimpleTopologyStrategy = "org.apache.cassandra.locator.SimpleTopologyStrategy" )
Variables ¶
This section is empty.
Functions ¶
func ReplicationQuery ¶
Types ¶
type CqlClient ¶
type CqlClient interface {
GetKeyspacesInfo() ([]Keyspace, error)
UpdateRF(keyspaceName string, strategyOptions map[string]string) error
GetRoles() ([]Role, error)
CreateRole(role Role) error
UpdateRole(role Role) error
UpdateRolePassword(roleName, newPassword string) error
Query(stmt string, values ...interface{}) error
DropRole(role Role) error
CloseSession()
}
func NewCQLClient ¶
func NewCQLClient(clusterConfig *gocql.ClusterConfig) (CqlClient, error)
Click to show internal directories.
Click to hide internal directories.