Documentation ¶
Index ¶
- func IsInternalRequest(ctx context.Context) bool
- type Cluster
- func (c *Cluster) Connect(ctx context.Context, opts ...grpc.DialOption) error
- func (c *Cluster) ExternalNodes() (res []*Node)
- func (c *Cluster) Get(k int32) (*Node, bool)
- func (c *Cluster) GetOther(accessToken string) (*Node, bool)
- func (c *Cluster) GoString() string
- func (c *Cluster) Len() int
- func (c *Cluster) Listen() string
- func (c *Cluster) Nodes() []*Node
- type Node
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInternalRequest ¶ added in v0.18.0
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster ...
func (*Cluster) ExternalNodes ¶ added in v0.17.0
ExternalNodes returns all available nodes except host.
func (*Cluster) GetOther ¶ added in v0.10.0
GetOther returns node for given access token. Returns false if cluster is nil, has only one element or if node that was found has same listen address as current one.
type Node ¶
type Node struct { ID int Addr string `json:"addr"` Client mnemosynerpc.SessionManagerClient `json:"-"` Health grpc_health_v1.HealthClient `json:"-"` }
Node ...
Click to show internal directories.
Click to hide internal directories.