Add tcp service for grpc listeners

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2019-03-04 16:23:38 -05:00
parent 475619c29e
commit b911ae3428
4 changed files with 48 additions and 3 deletions

View File

@@ -129,6 +129,11 @@ type TTRPCService interface {
RegisterTTRPC(*ttrpc.Server) error
}
// TCPService allows GRPC services to be registered with the underlying tcp server
type TCPService interface {
RegisterTCP(*grpc.Server) error
}
var register = struct {
sync.RWMutex
r []*Registration