Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baggage ¶
type Baggage interface { // Store adds a message from a topic to that topics store Store(topic string, content string) // Get retrieves all messages from that timestamp Get(topic string, timestamp string) // Tidy removes stale components Tidy() }
Baggage defines the interface to enable messages to be pulled from the store
type BaggageBolt ¶
type BaggageBolt struct {
// contains filtered or unexported fields
}
BaggageBolt defines the BoldDB implementation of the store
func New ¶
func New() BaggageBolt
func (*BaggageBolt) Get ¶
func (b *BaggageBolt) Get(topic string, timestamp string)
func (*BaggageBolt) Store ¶
func (b *BaggageBolt) Store(topic string, content string)
func (*BaggageBolt) Tidy ¶
func (b *BaggageBolt) Tidy()
Click to show internal directories.
Click to hide internal directories.