mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
exposed Serve() for gorpc
This commit is contained in:
parent
eac5865cae
commit
f4e3c7dd66
4
go.go
4
go.go
@ -528,6 +528,10 @@ func renderGoRPCServiceProxies(services map[string]*Service, fullPackageName str
|
||||
func (p *` + proxyName + `) Start() error {
|
||||
return p.server.Start()
|
||||
}
|
||||
|
||||
func (p *` + proxyName + `) Serve() error {
|
||||
return p.server.Serve()
|
||||
}
|
||||
|
||||
func (p *` + proxyName + `) Stop() {
|
||||
p.server.Stop()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user