3 Star 2 Fork 0

info-superbahn-ict / superbahn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nervous.go 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
tangshibo 提交于 2021-11-24 16:22 . update
package supbnervous
type NervousMessage struct {
Topic string
Key string
Value string
}
type Controller interface {
Subscribe(topic string) error
Receive(topic string) ( NervousMessage, error)
ReceiveEncoder(topic string) (string,[]byte,[]byte, error)
Send(topic string, key string, value string) error
RPCRegister(registerName string, rpcProcess func(args ...interface{}) (interface{}, error)) error
RPCRemove(registerName string) error
RPCCall(targetGuid string, funcName string, params ...interface{}) (interface{}, error)
RPCCallCustom(targetGuid string, tryTime int, tryInterval int, funcName string, params ...interface{}) (interface{}, error)
RPCList() ([]string, error)
RPCContains(funcName string) (bool, error)
//Run() error
Close() error
}
Go
1
https://gitee.com/info-superbahn-ict/superbahn.git
git@gitee.com:info-superbahn-ict/superbahn.git
info-superbahn-ict
superbahn
superbahn
5fda629dab96

搜索帮助