Documentation ¶
Index ¶
- func Marshal(entry *Entry) ([]byte, error)
- type Entry
- type Options
- type WAL
- func (w *WAL) Add(ctx context.Context, p string) (string, error)
- func (w *WAL) GetExpirationDuration() time.Duration
- func (w *WAL) ListEntries(ctx context.Context, fromToken string, max int) ([]Entry, string, error)
- func (w *WAL) ListTokens(ctx context.Context, fromToken string, max int) (tokens []string, next string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type WAL ¶
type WAL struct {
// contains filtered or unexported fields
}
func (*WAL) GetExpirationDuration ¶
func (*WAL) ListEntries ¶
func (*WAL) ListTokens ¶
func (w *WAL) ListTokens(ctx context.Context, fromToken string, max int) (tokens []string, next string, err error)
Reads the WAL starting from the tokens passed in. If startFrom is empty it will entry from beginning. Repeated reads can include duplicate tokens. No tokens are missed Returns false if the list has more entries that can be listed. Use the last Entry of the previous call to paginate to the next set of keys.
Click to show internal directories.
Click to hide internal directories.