mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 17:22:26 +00:00
tranport draft, renamed module
This commit is contained in:
15
transport/transport.go
Normal file
15
transport/transport.go
Normal file
@ -0,0 +1,15 @@
|
||||
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()
|
||||
}
|
Reference in New Issue
Block a user