Documentation ¶
Index ¶
- func EtcdDelete(keyString string) (bool, error)
- func EtcdDeletePrefix(prefixString string) (bool, error)
- func EtcdGet(keyString string) (string, error)
- func EtcdGetKeysOnly(prefixString string) ([]string, error)
- func EtcdGetPrefix(prefixString string) ([]map[string]string, error)
- func EtcdPut(keyString string, valueString string) (bool, error)
- func EtcdPutWithLeast(keyString string, valueString string, t int64) (bool, error)
- func EtcdWatchOnce(keyString string) (string, string, string)
- func EtcdWatchPrefixOnce(prefixString string) (string, string, string)
- func GetPageParams(c echo.Context) (int, int)
- func InitEtcd3()
- func InitMysql()
- func Logger() *log.Logger
- func MysqlExecute(sqlString string, args ...interface{}) (bool, error)
- func MysqlQuery(sqlString string, args ...interface{}) ([]map[string]string, error)
- func NewLogger() *log.Logger
- func ParseConfigFile(filePath *string)
- func StampInt64() int64
- func StampNanoInt64() int64
- func StampNanoString() string
- func StampString() string
- func StampToString(i int64) string
- func StringToStamp(s string) int64
- type Config
- type DatabaseConfig
- type EtcdConfig
- type PageDataType
- type RedisConfig
- type ResponseType
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EtcdDelete ¶
func EtcdDeletePrefix ¶
func EtcdGetKeysOnly ¶
func EtcdPutWithLeast ¶
func MysqlExecute ¶
func MysqlQuery ¶
func ParseConfigFile ¶
func ParseConfigFile(filePath *string)
func StampInt64 ¶
func StampInt64() int64
func StampNanoInt64 ¶
func StampNanoInt64() int64
func StampNanoString ¶
func StampNanoString() string
func StampString ¶
func StampString() string
func StampToString ¶
func StringToStamp ¶
Types ¶
type Config ¶
type Config struct { Server ServerConfig Database DatabaseConfig Redis RedisConfig Etcd EtcdConfig }
type DatabaseConfig ¶
type EtcdConfig ¶
type PageDataType ¶
type RedisConfig ¶
type ResponseType ¶
Click to show internal directories.
Click to hide internal directories.