summaryrefslogtreecommitdiff
path: root/plugins/memcached/memcachedkv/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-02 20:09:01 +0300
committerGitHub <[email protected]>2021-09-02 20:09:01 +0300
commit6749db4a2d39fa70b426bcf50edf66a176c07f57 (patch)
treef6f92c9f0016f6bcac6a9aa45ccc961eebf90018 /plugins/memcached/memcachedkv/config.go
parent0437d1f58514f694ea86e8176e621c009cd510f9 (diff)
parent4524f8c5af045ed5048250b63b7859eaeb4f24a1 (diff)
#778: feat(refactor): jobs code adjustingv2.4.0
#778: feat(refactor): jobs code adjusting
Diffstat (limited to 'plugins/memcached/memcachedkv/config.go')
-rw-r--r--plugins/memcached/memcachedkv/config.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/memcached/memcachedkv/config.go b/plugins/memcached/memcachedkv/config.go
new file mode 100644
index 00000000..569e2573
--- /dev/null
+++ b/plugins/memcached/memcachedkv/config.go
@@ -0,0 +1,12 @@
+package memcachedkv
+
+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
+ }
+}