storage

package
v0.0.0-...-ee0f8f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 4 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL