-
Notifications
You must be signed in to change notification settings - Fork 7
/
clusternode.go
40 lines (29 loc) · 1.04 KB
/
clusternode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package mock
// NewNodeOptions allows the specification of initial options for a new node.
type NewNodeOptions struct {
Features []ClusterNodeFeature
Services []ServiceType
}
// ClusterNode specifies a node within a cluster instance.
type ClusterNode interface {
// ID returns the uuid of this node.
ID() string
// Cluster returns the Cluster this node is part of.
Cluster() Cluster
// KvService returns the kv service for this node.
KvService() KvService
// MgmtService returns the mgmt service for this node.
MgmtService() MgmtService
// ViewService returns the views service for this node.
ViewService() ViewService
// QueryService returns the query service for this node.
QueryService() QueryService
// SearchService returns the search service for this node.
SearchService() SearchService
// AnalyticsService returns the analytics service for this node.
AnalyticsService() AnalyticsService
// ErrorMap returns the error map for this node.
ErrorMap() *ErrorMap
// HostName returns the address for this node.
Hostname() string
}