Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface { NodeResource // Insert defines a way to insert some members into the store that's associated // with the key Insert(selectors.Key, []selectors.FieldValueScore) <-chan selectors.Element // Delete removes a set of members associated with a key with in the store Delete(selectors.Key, []selectors.FieldValueScore) <-chan selectors.Element // Select retrieves a single element from the store Select(selectors.Key, selectors.Field) <-chan selectors.Element // Keys returns all the keys with in the store Keys() <-chan selectors.Element // Size defines a way to find the size associated with the key Size(selectors.Key) <-chan selectors.Element // Members defines a way to return all member keys associated with the key Members(selectors.Key) <-chan selectors.Element // Score returns the value of the field in a key Score(selectors.Key, selectors.Field) <-chan selectors.Element }
Node describes a type that can communicate with various node implementations in a generic concurrent manor.
type NodeResource ¶
type NodeResource interface { // Hash returns the transport unique hash Hash() uint32 // Host returns the transport underlying host Host() string }
NodeResource defines a hash and host
Click to show internal directories.
Click to hide internal directories.