Documentation ¶
Index ¶
- Variables
- type Message
- type Nodes
- type Queue
- func (s *Queue) Add(q *models.Queue) error
- func (s *Queue) All(userID int64) ([]models.Queue, error)
- func (s *Queue) ApplyMessageIDRange(userID int64, queueName string, size int) (int64, error)
- func (s *Queue) InitMessageMaxID(userID int64, queueName string, id int64) error
- func (s *Queue) MessageMaxID(userID int64, queueName string) (int64, error)
- func (s *Queue) One(userID int64, queueName string) (*models.Queue, error)
- func (s *Queue) Remove(userID int64, queueName string) error
- type Squad
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterMetaKV models.KV
ClusterMetaKV for nodes cluster
View Source
var DefaultStorage = &Storage{}
DefaultStorage default storage
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message for message storage
type Nodes ¶
type Nodes struct {
// contains filtered or unexported fields
}
Nodes for the cluster of server node
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue stores data
func (*Queue) ApplyMessageIDRange ¶
ApplyMessageIDRange try to apply message id range
func (*Queue) InitMessageMaxID ¶
InitMessageMaxID set queue max id, only if it havent been set
func (*Queue) MessageMaxID ¶
MessageMaxID get the max id for the queue
Click to show internal directories.
Click to hide internal directories.