boltstore/store/config.go
Wenhui Shen 3f6343127e update
2017-07-22 12:18:03 +08:00

19 lines
383 B
Go

package store
import (
"github.com/admpub/boltstore/shared"
)
// Config represents a config for a session store.
type Config struct {
// DBOptions represents options for a database.
DBOptions Options
}
// setDefault sets default to the config.
func (c *Config) setDefault() {
if c.DBOptions.BucketName == nil {
c.DBOptions.BucketName = []byte(shared.DefaultBucketName)
}
}