Documentation ¶
Index ¶
- type Command
- type FSM
- type FSMResponse
- type FSMSnapshot
- type Node
- func (n *Node) Ack(QueueName string, id uint64) error
- func (n *Node) CreateQueue(queueType, queueName string) error
- func (n *Node) DeleteQueue(queueName string) error
- func (n *Node) Dequeue(QueueName string, ack bool) (*queue.Message, error)
- func (n *Node) Enqueue(queueName string, group string, priority int64, content string) (*queue.Message, error)
- func (n *Node) GetByID(id uint64) (*queue.Message, error)
- func (node *Node) Initialize()
- func (n *Node) IsLeader() bool
- func (n *Node) Join(nodeID, addr string) error
- func (n *Node) Leader() string
- func (node *Node) ListenToLeaderChanges()
- func (node *Node) SetLeaderChangeFunc(leaderChangeFn func(bool))
- func (n *Node) UpdatePriority(queueName string, id uint64, priority int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSMResponse ¶
type FSMSnapshot ¶
type FSMSnapshot struct {
// contains filtered or unexported fields
}
func (*FSMSnapshot) Persist ¶
func (f *FSMSnapshot) Persist(sink raft.SnapshotSink) error
func (*FSMSnapshot) Release ¶
func (f *FSMSnapshot) Release()
type Node ¶
type Node struct { Raft *raft.Raft QueueManager *queue.QueueManager // contains filtered or unexported fields }
func (*Node) CreateQueue ¶
func (*Node) DeleteQueue ¶
func (*Node) Initialize ¶
func (node *Node) Initialize()
func (*Node) ListenToLeaderChanges ¶
func (node *Node) ListenToLeaderChanges()
func (*Node) SetLeaderChangeFunc ¶
Click to show internal directories.
Click to hide internal directories.