grpc/transport/transport.go

16 lines
227 B
Go
Raw Normal View History

2021-07-17 20:40:06 +00:00
package transport
import (
"net"
"google.golang.org/grpc"
)
type Transport interface {
grpc.ServiceRegistrar
RegisterService(sd *grpc.ServiceDesc, ss interface{})
Serve(lis net.Listener) error
Stop()
GracefulStop()
}