-
-
Notifications
You must be signed in to change notification settings - Fork 435
/
service.go
48 lines (40 loc) · 933 Bytes
/
service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package couchbase
type Service struct {
identifier string
minimumQuotaMb int
ports []string
}
func (s Service) hasQuota() bool {
return s.minimumQuotaMb > 0
}
var (
kv = Service{
identifier: "kv",
minimumQuotaMb: 256,
ports: []string{KV_PORT, KV_SSL_PORT, VIEW_PORT, VIEW_SSL_PORT},
}
query = Service{
identifier: "n1ql",
minimumQuotaMb: 0,
ports: []string{QUERY_PORT, QUERY_SSL_PORT},
}
search = Service{
identifier: "fts",
minimumQuotaMb: 256,
ports: []string{SEARCH_PORT, SEARCH_SSL_PORT},
}
index = Service{
identifier: "index",
minimumQuotaMb: 256,
}
analytics = Service{
identifier: "cbas",
minimumQuotaMb: 256,
ports: []string{ANALYTICS_PORT, ANALYTICS_SSL_PORT},
}
eventing = Service{
identifier: "eventing",
minimumQuotaMb: 256,
ports: []string{EVENTING_PORT, EVENTING_SSL_PORT},
}
)