Documentation ¶
Index ¶
- Variables
- type BatchInput
- type BatchOutput
- type BoltStore
- func (b *BoltStore) AckInflight(id string, index uint64) error
- func (b *BoltStore) All() []string
- func (b *BoltStore) Close() error
- func (b *BoltStore) CreateQueue(id string) error
- func (b *BoltStore) Delete(id string, index uint64) error
- func (b *BoltStore) DeleteQueue(id string) error
- func (b *BoltStore) Exists(id string) bool
- func (b *BoltStore) GetExpiredInflights(currentTime time.Time) []*pb.ExpiredInflights
- func (b *BoltStore) GetRange(id string, from uint64, buff []StoredMessage) (int, uint64, error)
- func (b *BoltStore) GetStatistics(id string) (*pb.QueueStatistics, error)
- func (b *BoltStore) ListQueues() ([]string, error)
- func (b *BoltStore) On(queue string, event string, f func(payload interface{})) (cancel func())
- func (b *BoltStore) Put(id string, index uint64, payload []byte) error
- func (b *BoltStore) PutBatch(batches []*pb.QueueStateTransitionMessagePut) error
- func (b *BoltStore) Restore(r io.Reader) error
- func (b *BoltStore) SetInflight(id string, index uint64, deadline uint64) error
- func (b *BoltStore) TickExpiredMessages(messages []*pb.ExpiredInflights) error
- func (b *BoltStore) WriteTo(out io.Writer) error
- type Options
- type Store
- type StoredMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrKeyNotFound is an error indicating a given key does not exist ErrKeyNotFound = errors.New("not found") // ErrQueueNotFound is an error indicating a given queue does not exist ErrQueueNotFound = errors.New("queue not found") // ErrIndexOutdated is an error indicating that the supplied index is outdated ErrIndexOutdated = errors.New("index outdated") )
Functions ¶
This section is empty.
Types ¶
type BatchInput ¶ added in v0.0.71
type BatchOutput ¶ added in v0.0.71
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
func (*BoltStore) AckInflight ¶ added in v0.0.71
func (*BoltStore) CreateQueue ¶
func (*BoltStore) DeleteQueue ¶
func (*BoltStore) GetExpiredInflights ¶ added in v0.0.71
func (b *BoltStore) GetExpiredInflights(currentTime time.Time) []*pb.ExpiredInflights
func (*BoltStore) GetStatistics ¶ added in v0.0.71
func (b *BoltStore) GetStatistics(id string) (*pb.QueueStatistics, error)
func (*BoltStore) ListQueues ¶ added in v0.0.71
func (*BoltStore) PutBatch ¶ added in v0.0.71
func (b *BoltStore) PutBatch(batches []*pb.QueueStateTransitionMessagePut) error
func (*BoltStore) SetInflight ¶ added in v0.0.71
func (*BoltStore) TickExpiredMessages ¶ added in v0.0.71
func (b *BoltStore) TickExpiredMessages(messages []*pb.ExpiredInflights) error
type Options ¶
type Options struct { // Path is the file path to the BoltDB to use Path string // BoltOptions contains any specific BoltDB options you might // want to specify [e.g. open timeout] BoltOptions *bolt.Options // NoSync causes the database to skip fsync calls after each // write to the log. This is unsafe, so it should be used // with caution. NoSync bool }
type StoredMessage ¶ added in v0.0.71
Click to show internal directories.
Click to hide internal directories.