Documentation
¶
Index ¶
- type FSM
- type FSMResponse
- type FSMSnapshot
- type Node
- func (n *Node) Ack(QueueName string, id uint64) error
- func (n *Node) Backup(w io.Writer, since uint64) (uint64, error)
- func (n *Node) CreateQueue(queueType, queueName string, settings entity.QueueSettings) error
- func (n *Node) Delete(QueueName string, id uint64) error
- func (n *Node) DeleteQueue(queueName string) error
- func (n *Node) Dequeue(QueueName string, ack bool) (*entity.Message, error)
- func (n *Node) Enqueue(queueName string, id uint64, group string, priority int64, content string, ...) (*entity.Message, error)
- func (n *Node) GenerateID() uint64
- func (n *Node) Get(QueueName string, id uint64) (*entity.Message, error)
- func (n *Node) GetQueueInfo(queueName string) (*queue.QueueInfo, error)
- func (n *Node) GetQueues() []*queue.QueueInfo
- func (n *Node) InitIDGenerator() error
- func (n *Node) Initialize()
- func (n *Node) IsLeader() bool
- func (n *Node) Join(nodeID, addr string) error
- func (n *Node) Leader() string
- func (n *Node) ListenToLeaderChanges()
- func (n *Node) Nack(QueueName string, id uint64, priority int64, metadata map[string]string) error
- func (n *Node) PrometheusRegistry() prometheus.Registerer
- func (n *Node) Restore(r io.Reader, maxPendingWrites int) error
- func (n *Node) RunValueLogGC()
- func (n *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 {
NodeID string
// 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 (n *Node) CreateQueue(queueType, queueName string, settings entity.QueueSettings) error
func (*Node) DeleteQueue ¶
func (*Node) GenerateID ¶ added in v0.1.14
func (*Node) GetQueueInfo ¶ added in v0.2.0
func (*Node) InitIDGenerator ¶ added in v0.1.14
func (*Node) Initialize ¶
func (n *Node) Initialize()
func (*Node) ListenToLeaderChanges ¶
func (n *Node) ListenToLeaderChanges()
func (*Node) PrometheusRegistry ¶ added in v0.2.0
func (n *Node) PrometheusRegistry() prometheus.Registerer
func (*Node) RunValueLogGC ¶ added in v0.3.8
func (n *Node) RunValueLogGC()
func (*Node) SetLeaderChangeFunc ¶
Click to show internal directories.
Click to hide internal directories.