Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultStatCycle = time.Second * 3 DefaultGRPCTimeout = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶ added in v1.5.0
RandomString generate a random string
Types ¶
type AtomicBool ¶ added in v1.5.0
type AtomicBool struct {
// contains filtered or unexported fields
}
AtomicBool represents a atomic bool
type ClientConnInterface ¶ added in v1.9.0
type ClientConnInterface interface {
grpc.ClientConnInterface
Close() error
}
ClientConnInterface .
func NewGRPCClientConnForNode ¶ added in v1.9.0
func NewGRPCClientConnForNode(node discovery.Node) (ClientConnInterface, error)
NewGRPCClientForNode .
type ServiceInterface ¶ added in v1.9.0
type ServiceInterface interface {
grpc.ServiceRegistrar
Serve(lis net.Listener) error
Stop()
}
ServiceInterface .
func NewGRPCServiceForNode ¶ added in v1.9.0
func NewGRPCServiceForNode(node discovery.Node) (ServiceInterface, error)
NewGRPCServiceForNode .
Click to show internal directories.
Click to hide internal directories.