Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Index string
// contains filtered or unexported fields
}
func (*Client) FindAllByUrl ¶
type DBEntry ¶
type DBEntry struct {
Username string `json:"username"`
Text string `json:"text"`
Url string `json:"url"`
AvatarFile string `json:"avatar_file"`
Role string `json:"role"`
Datetime int64 `json:"datetime"`
DataID int64 `json:"data_id"`
ParentID int64 `json:"parent_id"`
Type int `json:"type"`
Position int `json:"position"`
}
type Response ¶
type Response struct {
Took int `json:"took"`
TimedOut bool `json:"timed_out"`
Hits struct {
Total int `json:"total"`
TotalRelation string `json:"total_relation"`
Hits []struct {
Id int64 `json:"_id"`
Score int `json:"_score"`
Source struct {
Username string `json:"username"`
Text string `json:"text"`
AvatarFile string `json:"avatar_file"`
Url string `json:"url"`
Role string `json:"role"`
Datetime int64 `json:"datetime"`
DataID int `json:"data_id"`
ParentID int `json:"parent_id"`
Type int `json:"type"`
Position int `json:"position"`
} `json:"_source"`
} `json:"hits"`
} `json:"hits"`
}
Click to show internal directories.
Click to hide internal directories.