Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface { PrintKeyspace(cname string) string PrintKey(m *types.Member) string PrintValue(m *types.Member) string ScanKey(key string, m *types.Member) ScanValue(value string, m *types.Member) }
func NewBasicFormatter ¶
type Plug ¶
type Plug interface { // Advertise myself as a publisher Me(ctx context.Context, op types.Operation, me *types.Member) error // Returns a channel that emits changes on cluster publisher. // Each channel must be a singleton. Watch(ctx context.Context, cname string, size int) (<-chan *Event, error) // Stop watching changes on a Cluster Stop(cname string) // Stop all watching changes and close client Close() }
Plug is a wrapper of a database client which is connected with Cluster member store. Plug is a singleton and handles all the clusters and nodes related to the node. Plug doesn't handle connection between nodes.
Click to show internal directories.
Click to hide internal directories.