Documentation ¶
Index ¶
- Variables
- type Queue
- func (q *Queue) ApproximateSize() uint64
- func (q *Queue) Close()
- func (q *Queue) Dequeue(startId ...uint64) (uint64, []byte, error)
- func (q *Queue) DequeueGob(value interface{}, startId ...uint64) (uint64, error)
- func (q *Queue) DequeueJson(value interface{}, startId ...uint64) (uint64, error)
- func (q *Queue) DequeueString(startId ...uint64) (uint64, string, error)
- func (q *Queue) Enqueue(data []byte) (uint64, error)
- func (q *Queue) EnqueueGob(value interface{}) (uint64, error)
- func (q *Queue) EnqueueJson(value interface{}) (uint64, error)
- func (q *Queue) EnqueueString(value string) (uint64, error)
- type Store
- type StoreOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyQueue = errors.New("No new message in the queue")
)
Functions ¶
This section is empty.
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) ApproximateSize ¶
func (*Queue) DequeueGob ¶
func (*Queue) DequeueJson ¶
func (*Queue) DequeueString ¶
func (*Queue) EnqueueGob ¶
func (*Queue) EnqueueJson ¶
type Store ¶
Store defines the basic rocksdb wrapper
func NewStore ¶
func NewStore(options StoreOptions) (*Store, error)
NewStore returns the Store a rocksdb wrapper
type StoreOptions ¶
type StoreOptions struct { Directory string WriteBufferSize int WriteBufferNumber int MemorySize int FileSizeBase uint64 Compression rocks.CompressionType Parallel int DisableAutoCompaction bool DisableWAL bool DisableTailing bool Sync bool IsDebug bool }
StoreOptions defines the options for rocksdb storage
func (*StoreOptions) SetDefaults ¶
func (so *StoreOptions) SetDefaults()
Click to show internal directories.
Click to hide internal directories.