Documentation ¶
Overview ¶
badger doesn't do structured logging but is instead using Debugf and formats the strings with parameters. That makes analyzis a bit tricky since the same log print might differ, for instance startup time. This is a small improvement, the logs are ugly but it's possible to group and filter them
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterModel ¶
type DB ¶
type DB struct { Counter CounterModel // contains filtered or unexported fields }
type Model ¶
type Model interface { // EnsureDB should be idempotent, making sure the db is in an expected state // ie tables/namespaces/indices etc should exist after a call. it should be safe to run at start, so not // dropping and recreating tables or such EnsureDB(context.Context) error // TearDown is destructive and purges all data, useful for integration tests TearDown(context.Context) error // Close closes anything needed Close(context.Context) error }
Click to show internal directories.
Click to hide internal directories.