Documentation ¶
Index ¶
- Variables
- func AnyTypeInt(sint interface{}) (ret int)
- func BitCount(i uint64) int
- func Crc16(bs []byte) (crc uint16)
- func EtcdDail(etcdconfig toml.DBConfig) *clientv3.Client
- func GenDayIncrId(filed string) int
- func GenIncrId(filed string) int
- func GenInnerIncrId() int
- func LoadFile(filename string) (filedata string, err error)
- func MongoDail(mongoconfig toml.DBConfig) *mgo.Session
- func MysqlDail(mysqlconfig toml.DBConfig) *xorm.Engine
- func MysqlDailName(mysqlconfig toml.DBConfig, dbName string) *xorm.Engine
- func Pack(v interface{}) (string, error)
- func RedisDail(redisconfig toml.DBConfig) redis.Conn
- func UnPack(data []byte, v interface{}) error
- type Redis
- func (this *Redis) Dail() redis.Conn
- func (this *Redis) HGet(key string, field interface{}) (string, error)
- func (this *Redis) HGetOrgin(key string, field interface{}) (interface{}, error)
- func (this *Redis) HIncrBy(key string, field string, by int) (int64, error)
- func (this *Redis) HSet(key string, field interface{}, value interface{}) error
- func (this *Redis) NewPool() *redis.Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalWorker interface{}
Functions ¶
func AnyTypeInt ¶
func AnyTypeInt(sint interface{}) (ret int)
func GenDayIncrId ¶
func GenInnerIncrId ¶
func GenInnerIncrId() int
Types ¶
Click to show internal directories.
Click to hide internal directories.