Documentation ¶
Overview ¶
Package counter ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client to the counter service.
Note starting with simply routing all streams to the first node.
func NewClient ¶
func NewClient(partitioner Partitioner) *Client
NewClient connects to the counter service and streams the count for subscribed IDs.
type Murmur3Partitioner ¶
type Murmur3Partitioner struct {
// contains filtered or unexported fields
}
func NewMurmur3Partitioner ¶
func NewMurmur3Partitioner() *Murmur3Partitioner
func (*Murmur3Partitioner) SetNodes ¶
func (p *Murmur3Partitioner) SetNodes(nodes map[string]string)
Click to show internal directories.
Click to hide internal directories.