summaryrefslogtreecommitdiff
path: root/plugins/boltdb/boltkv/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-16 21:46:50 +0300
committerGitHub <[email protected]>2021-09-16 21:46:50 +0300
commit3581b45f237a3f7aa29591ceb2bf6f4a4642a2f5 (patch)
treee723b19ec1ac16b7ccc7b3c2da69d4a416d63d81 /plugins/boltdb/boltkv/config.go
parent337d292dd2d6ff0a555098b1970d8194d8df8bc2 (diff)
parent823d831b57b75f70c7c3bbbee355f2016633bb3b (diff)
[#803]: feat(plugins): move plugins to a separate repositoryv2.5.0-alpha.2
[#803]: feat(plugins): move plugins to a separate repository
Diffstat (limited to 'plugins/boltdb/boltkv/config.go')
-rw-r--r--plugins/boltdb/boltkv/config.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/plugins/boltdb/boltkv/config.go b/plugins/boltdb/boltkv/config.go
deleted file mode 100644
index 56d00674..00000000
--- a/plugins/boltdb/boltkv/config.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package boltkv
-
-type Config struct {
- // File is boltDB file. No need to create it by your own,
- // boltdb driver is able to create the file, or read existing
- File string
- // Bucket to store data in boltDB
- bucket string
- // db file permissions
- Permissions int
- // timeout
- Interval int `mapstructure:"interval"`
-}
-
-// InitDefaults initializes default values for the boltdb
-func (s *Config) InitDefaults() {
- s.bucket = "default"
-
- if s.File == "" {
- s.File = "rr.db" // default file name
- }
-
- if s.Permissions == 0 {
- s.Permissions = 0777 // free for all
- }
-
- if s.Interval == 0 {
- s.Interval = 60 // default is 60 seconds timeout
- }
-}