14 Star 50 Fork 12

Hprose/hprose-go

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
service.go 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
Hprose 提交于 2016-10-31 21:45 +08:00 . Update to hprose 2.0
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* rpc/service.go *
* *
* hprose service for Go. *
* *
* LastModified: Oct 27, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
package rpc
import "time"
// Service interface
type Service interface {
AddFunction(name string, function interface{}, option ...Options) Service
AddFunctions(names []string, functions []interface{}, option ...Options) Service
AddMethod(name string, obj interface{}, alias string, option ...Options) Service
AddMethods(names []string, obj interface{}, aliases []string, option ...Options) Service
AddInstanceMethods(obj interface{}, option ...Options) Service
AddAllMethods(obj interface{}, option ...Options) Service
AddMissingMethod(method MissingMethod, option ...Options) Service
AddNetRPCMethods(rcvr interface{}, option ...Options) Service
Remove(name string) Service
Filter() Filter
FilterByIndex(index int) Filter
SetFilter(filter ...Filter) Service
AddFilter(filter ...Filter) Service
RemoveFilterByIndex(index int) Service
RemoveFilter(filter ...Filter) Service
AddInvokeHandler(handler ...InvokeHandler) Service
AddBeforeFilterHandler(handler ...FilterHandler) Service
AddAfterFilterHandler(handler ...FilterHandler) Service
SetUserData(userdata map[string]interface{}) Service
Publish(topic string, timeout time.Duration, heartbeat time.Duration) Service
Clients
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/andot/hprose-go.git
git@gitee.com:andot/hprose-go.git
andot
hprose-go
hprose-go
v2.0.4

搜索帮助