示例#1
0
文件: account.go 项目: mysll/flynet
func NewAccount(pool int) *Account {
	a := &Account{}
	a.Thread = rpc.NewThread("Account", pool, 128)
	return a
}
示例#2
0
文件: db_raw.go 项目: mysll/flynet
func NewRaw(pool int) *Database {
	idb := &Database{}
	idb.Thread = rpc.NewThread("raw", pool, 32)
	return idb
}