simple

package
v0.0.0-...-3d56993 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LuaSerialize_SourceCode = `` /* 1495-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Infect

func Infect(struct_obj interface{}, value interface{}) (int, error)

func InfectByName

func InfectByName(struct_obj interface{}, value interface{}, name string) (int, error)

func LoadData

func LoadData(addr string) (data []byte, err error)

func LoadData_FromFile

func LoadData_FromFile(path string) (data []byte, err error)

func LoadData_FromHttp

func LoadData_FromHttp(url string) (data []byte, err error)

func LoadData_FromRedis

func LoadData_FromRedis(addr string) (data []byte, err error)

func LuaFetchConfig

func LuaFetchConfig(addr string, config interface{},
	config_field_must_exist bool, pre_defines ...interface{}) (err error)

func LuaSerialize

func LuaSerialize(value interface{}) (result string, err error)

Types

type HandleID

type HandleID uint32

type HandleMap

type HandleMap struct {
	// contains filtered or unexported fields
}

func NewHandleMap

func NewHandleMap() *HandleMap

func (*HandleMap) Add

func (self *HandleMap) Add(info interface{}) (seq HandleID)

func (*HandleMap) Clear

func (self *HandleMap) Clear(seq HandleID)

func (*HandleMap) Del

func (self *HandleMap) Del(seq HandleID) interface{}

func (*HandleMap) Get

func (self *HandleMap) Get(seq HandleID) interface{}

func (*HandleMap) Set

func (self *HandleMap) Set(seq HandleID, info interface{})

type RedisPublisher

type RedisPublisher struct {
	redis.Conn
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL