mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-14 23:16:25 +00:00
16 lines
227 B
Go
16 lines
227 B
Go
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()
|
|
}
|