summaryrefslogtreecommitdiff
path: root/plugins/memcached/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-26 18:32:51 +0300
committerValery Piashchynski <[email protected]>2021-08-26 18:32:51 +0300
commitefb3efa98c8555815330274f0618bfc080f4c65c (patch)
treeb3bcabdb22fade6ef06d865d60995bc15f84cf1c /plugins/memcached/config.go
parent3212a5b59b6dcd8aa6edac137e945d42f6f9e0ce (diff)
Move drivers to the plugin's root.
Fix #771, add tests. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/memcached/config.go')
-rw-r--r--plugins/memcached/config.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/memcached/config.go b/plugins/memcached/config.go
new file mode 100644
index 00000000..6d413790
--- /dev/null
+++ b/plugins/memcached/config.go
@@ -0,0 +1,12 @@
+package memcached
+
+type Config struct {
+ // Addr is url for memcached, 11211 port is used by default
+ Addr []string
+}
+
+func (s *Config) InitDefaults() {
+ if s.Addr == nil {
+ s.Addr = []string{"127.0.0.1:11211"} // default url for memcached
+ }
+}