forked from ravendb/ravendb-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collection_statistics.go
35 lines (27 loc) · 926 Bytes
/
collection_statistics.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
package ravendb
type CollectionStatistics struct {
CountOfDocuments int `json:"CountOfDocuments"`
CountOfConflicts int `json:"CountOfConflicts"`
Collections map[string]int `json:"Collections"`
}
func NewCollectionStatistics() *CollectionStatistics {
return &CollectionStatistics{}
}
func (s *CollectionStatistics) GetCollections() map[string]int {
return s.Collections
}
func (s *CollectionStatistics) SetCollections(collections map[string]int) {
s.Collections = collections
}
func (s *CollectionStatistics) GetCountOfDocuments() int {
return s.CountOfDocuments
}
func (s *CollectionStatistics) SetCountOfDocuments(countOfDocuments int) {
s.CountOfDocuments = countOfDocuments
}
func (s *CollectionStatistics) GetCountOfConflicts() int {
return s.CountOfConflicts
}
func (s *CollectionStatistics) SetCountOfConflicts(countOfConflicts int) {
s.CountOfConflicts = countOfConflicts
}