Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶ added in v0.5.0
type Badger struct {
// contains filtered or unexported fields
}
func (*Badger) GetAll ¶ added in v0.5.0
func (b *Badger) GetAll(receiverKey []byte) ([]*pb.DMSMessage, error)
func (*Badger) GetNext ¶ added in v0.5.0
func (b *Badger) GetNext(receiverKey []byte) (*pb.DMSMessage, error)
type Store ¶
type Store interface {
// Save saves a new message using the receiver key.
Save(msg *pb.DMSMessage, receiverKey []byte) error
// Get next returns next message available for this receiver.
GetNext(receiver []byte) (*pb.DMSMessage, error)
// Get all returns all messages available for this receiver.
GetAll(receiver []byte) ([]*pb.DMSMessage, error)
// Remove removes the message from the local storage.
Remove(msg *pb.DMSMessage, receiverKey []byte) error
}
Store represents local store for DMSMessages.
Click to show internal directories.
Click to hide internal directories.