Documentation ¶
Index ¶
- Constants
- func Infect(struct_obj interface{}, value interface{}) (int, error)
- func InfectByName(struct_obj interface{}, value interface{}, name string) (int, error)
- func LoadData(addr string) (data []byte, err error)
- func LoadData_FromFile(path string) (data []byte, err error)
- func LoadData_FromHttp(url string) (data []byte, err error)
- func LoadData_FromRedis(addr string) (data []byte, err error)
- func LuaFetchConfig(addr string, config interface{}, config_field_must_exist bool, ...) (err error)
- func LuaSerialize(value interface{}) (result string, err error)
- type HandleID
- type HandleMap
- type RedisPublisher
- type RedisSubscriber
Constants ¶
View Source
const (
LuaSerialize_SourceCode = `` /* 1495-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func InfectByName ¶
func LoadData_FromFile ¶
func LoadData_FromHttp ¶
func LoadData_FromRedis ¶
func LuaFetchConfig ¶
func LuaSerialize ¶
Types ¶
type HandleMap ¶
type HandleMap struct {
// contains filtered or unexported fields
}
func NewHandleMap ¶
func NewHandleMap() *HandleMap
type RedisPublisher ¶
redis 发布
func NewRedisPublisher ¶
func NewRedisPublisher() *RedisPublisher
func (*RedisPublisher) Close ¶
func (self *RedisPublisher) Close()
func (*RedisPublisher) Connect ¶
func (self *RedisPublisher) Connect(addr string) (err error)
func (*RedisPublisher) Publish ¶
func (self *RedisPublisher) Publish(channel string, value interface{}) (err error)
type RedisSubscriber ¶
type RedisSubscriber struct {
redis.PubSubConn
}
redis 订阅
func NewRedisSubscriber ¶
func NewRedisSubscriber() *RedisSubscriber
func (*RedisSubscriber) Close ¶
func (self *RedisSubscriber) Close()
func (*RedisSubscriber) Connect ¶
func (self *RedisSubscriber) Connect(addr string) (err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.