Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrUnableToOpen means we had an issue establishing a connection (or creating the database) ErrUnableToOpen = "Unable to open boltdb; is there a chronograf already running? %v" // ErrUnableToBackup means we couldn't copy the db file into ./backup ErrUnableToBackup = "Unable to backup your database prior to migrations: %v" // ErrUnableToInitialize means we couldn't create missing Buckets (maybe a timeout) ErrUnableToInitialize = "Unable to boot boltdb: %v" // ErrUnableToUpdate means we had an issue changing the db schema ErrUnableToUpdate = "Unable to store new version in boltdb: %v" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket implements kv.Bucket.
func (*Bucket) ForEach ¶
ForEach executes a function for each key/value pair in a bucket. If the provided function returns an error then the iteration is stopped and the error is returned to the caller. The provided function must not modify the bucket; this will result in undefined behavior.
func (*Bucket) NextSequence ¶
NextSequence calls NextSequence on the bolt bucket.
type Option ¶
type Option func(c *client) error
Option to change behavior of Open()
func WithBuildInfo ¶
func WithBuildInfo(bi chronograf.BuildInfo) Option
WithBuildInfo allows for setting this chronograf's build info.
func WithLogger ¶
func WithLogger(logger chronograf.Logger) Option
WithLogger allows for setting this chronograf's logger.
Click to show internal directories.
Click to hide internal directories.