Documentation
¶
Index ¶
Constants ¶
View Source
const (
//CQLNotFound when acess cql, get the not found result
CQLNotFound = "not found"
)
Variables ¶
View Source
var Base64 = base64.NewEncoding("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
Base64 is the base64 handler
View Source
var CQL *gocql.Session
CQL is the cql session for access cassandra
View Source
var IDGen *sonyflake.Sonyflake
IDGen generate ditrubuted unique id
View Source
var Log *zap.Logger
Log is the global var for log
View Source
var Sanitizer *bluemonday.Policy
Sanitizer makes outside string clean
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
LogLevel string `yaml:"log_level"`
ListenAddr string `yaml:"listen_addr"`
CQL struct {
Cluster []string `yaml:"cluster"`
ConnectionNum int `yaml:"connection_num"`
Keyspace string
}
}
Config for dashboardå
var Conf *Config
Conf is the global var for config
Click to show internal directories.
Click to hide internal directories.