Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultKeySpace = "spot_prod" DefaultBaseLogTable = "spot_prod.base_log" BaseLogCreateTable = `` /* 829-byte string literal not displayed */ BaseLogAlterTableGCGraceSeconds = `ALTER TABLE %s.base_log WITH gc_grace_seconds = %d;` BaseLogCreateIndex = `CREATE INDEX IF NOT EXISTS idx_request_id ON %s.base_log (request_id);` LogMetaCreateTable = `` /* 686-byte string literal not displayed */ LogMetaCreateIndex = `CREATE INDEX IF NOT EXISTS idx_tags_entry ON %s.base_log_meta (ENTRIES(tags));` )
Variables ¶
This section is empty.
Functions ¶
func KeyspaceWithOrgName ¶
KeyspaceWithOrgName orgName must match ^([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ refer https://stackoverflow.com/questions/29569443/cassandra-keyspace-name-with-hyphen
Types ¶
type CassandraSchema ¶
func NewCassandraSchema ¶
func (*CassandraSchema) CreateDefault ¶
func (cs *CassandraSchema) CreateDefault() error
func (*CassandraSchema) ValidateOrg ¶
func (cs *CassandraSchema) ValidateOrg(orgName string) bool
Click to show internal directories.
Click to hide internal directories.