Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceLeaseTTL = 3
Variables ¶
This section is empty.
Functions ¶
func ClientConn ¶
func ClientConn(target string) (conn *grpc.ClientConn, err error)
func NewClientConn ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServerWithOption ¶
func NewServerWithOption(target, host string, port int, register ServiceRegister, opt ...grpc.ServerOption) *Server
func (*Server) GetServiceInfo ¶
func (s *Server) GetServiceInfo() map[string]grpc.ServiceInfo
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
func (*Server) RegisterService ¶
func (s *Server) RegisterService(sd *grpc.ServiceDesc, ss interface{})
type ServiceRegister ¶
Click to show internal directories.
Click to hide internal directories.