/
confluence_search.go
62 lines (56 loc) · 2.68 KB
/
confluence_search.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package models
type SearchContentOptions struct {
Context string
Cursor string
Next bool
Prev bool
Limit int
Start int
IncludeArchivedSpaces bool
ExcludeCurrentSpaces bool
SitePermissionTypeFilter string
Excerpt string
Expand []string
}
type SearchPageScheme struct {
Results []*SearchResultScheme `json:"results,omitempty"`
Start int `json:"start,omitempty"`
Limit int `json:"limit,omitempty"`
Size int `json:"size,omitempty"`
TotalSize int `json:"totalSize,omitempty"`
CqlQuery string `json:"cqlQuery,omitempty"`
SearchDuration int `json:"searchDuration,omitempty"`
ArchivedResultCount int `json:"archivedResultCount,omitempty"`
Links *SearchPageLinksScheme `json:"_links,omitempty"`
}
type SearchPageLinksScheme struct {
Base string `json:"base,omitempty"`
Context string `json:"context,omitempty"`
Next string `json:"next,omitempty"`
Self string `json:"self,omitempty"`
}
type SearchResultScheme struct {
Content *ContentScheme `json:"content,omitempty"`
User *ContentUserScheme `json:"user,omitempty"`
Space *SpaceScheme `json:"space,omitempty"`
Title string `json:"title,omitempty"`
Excerpt string `json:"excerpt,omitempty"`
URL string `json:"url,omitempty"`
ResultParentContainer *ContainerSummaryScheme `json:"resultParentContainer,omitempty"`
ResultGlobalContainer *ContainerSummaryScheme `json:"resultGlobalContainer,omitempty"`
Breadcrumbs []*SearchBreadcrumbScheme `json:"breadcrumbs,omitempty"`
EntityType string `json:"entityType,omitempty"`
IconCSSClass string `json:"iconCssClass,omitempty"`
LastModified string `json:"lastModified,omitempty"`
FriendlyLastModified string `json:"friendlyLastModified,omitempty"`
Score float64 `json:"score,omitempty"`
}
type ContainerSummaryScheme struct {
Title string `json:"title,omitempty"`
DisplayURL string `json:"displayUrl,omitempty"`
}
type SearchBreadcrumbScheme struct {
Label string `json:"label,omitempty"`
URL string `json:"url,omitempty"`
Separator string `json:"separator,omitempty"`
}