Documentation ¶
Index ¶
- Constants
- type Config
- type Store
- func (s *Store) AddNode(n *sandglass.Node) error
- func (s *Store) AddVoter(id, address string, prevIndex uint64) error
- func (s *Store) CreateTopic(t *topic.Topic) error
- func (s *Store) GetPartitionLeader(topic, partition string) (string, bool)
- func (s *Store) GetTopic(name string) *topic.Topic
- func (s *Store) GetTopics() []*topic.Topic
- func (s *Store) Init(bootstrap bool, serf *serf.Serf, reconcileCh chan serf.Member) error
- func (s *Store) IsLeader() bool
- func (s *Store) Leader() string
- func (s *Store) LeaderCh() <-chan bool
- func (s *Store) NewTopicChan() chan *topic.Topic
- func (s *Store) RemoveNode(n *sandglass.Node) error
- func (s *Store) RemoveServer(id string, prevIndex uint64) error
- func (s *Store) SetPartitionLeaderBulkOp(v map[string]map[string]string) error
- func (s *Store) SetPartitionLeaderOp(topic, partition, leader string) error
- func (s *Store) Stop() error
Constants ¶
View Source
const ( CreateTopicOp = "CreateTopicOp" SetPartitionLeaderOp = "SetPartitionLeader" SetPartitionLeaderBulkOp = "SetPartitionLeaderBulkOp" AddNode = "AddNode" DeleteNode = "DeleteNode" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetPartitionLeader ¶
func (*Store) NewTopicChan ¶
func (*Store) SetPartitionLeaderBulkOp ¶
func (*Store) SetPartitionLeaderOp ¶
Click to show internal directories.
Click to hide internal directories.