mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-18 08:56:25 +00:00
15 lines
172 B
Go
15 lines
172 B
Go
|
package transport
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type Transport interface {
|
||
|
grpc.ServiceRegistrar
|
||
|
Serve(lis net.Listener) error
|
||
|
Stop()
|
||
|
GracefulStop()
|
||
|
}
|