1 Star 0 Fork 0

Beta版厨子3.0® / go-moa-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
benchmark.go 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
Beta版厨子3.0® 提交于 2016-04-07 17:52 . modified: README.md
package main
import (
"github.com/blackbeans/go-moa/core"
"github.com/blackbeans/go-moa/proxy"
"os"
"os/signal"
)
type IGoMoaDemo interface {
SetName(name string) error
Ping() error
}
type GoMoaDemo struct {
}
func (self GoMoaDemo) SetName(name string) error {
return nil
}
func (self GoMoaDemo) Ping() error {
return nil
}
func main() {
app := core.NewApplcation("conf/moa_server.toml", func() []proxy.Service {
return []proxy.Service{
proxy.Service{
ServiceUri: "/service/bibi/go-moa",
Instance: GoMoaDemo{},
Interface: (*IGoMoaDemo)(nil)}}
})
//设置
ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Kill)
//kill
<-ch
app.DestoryApplication()
}
Go
1
https://gitee.com/blackbeans/go-moa-client.git
git@gitee.com:blackbeans/go-moa-client.git
blackbeans
go-moa-client
go-moa-client
master

搜索帮助