-
Notifications
You must be signed in to change notification settings - Fork 1
/
resultsFromServer.go
39 lines (37 loc) · 1.18 KB
/
resultsFromServer.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
package main
import (
"time"
)
// ResultsFromServer stores results as received from server.
type ResultsFromServer struct {
ConcResult []struct {
ConcordanceTextRanges []struct {
Length int `json:"Length"`
Start int `json:"Start"`
} `json:"ConcordanceTextRanges"`
ConcordanceTranslationRanges []struct {
Length int `json:"Length"`
Score float64 `json:"Score"`
Start int `json:"Start"`
} `json:"ConcordanceTranslationRanges"`
Length int `json:"Length"`
StartPos int `json:"StartPos"`
TMEntry struct {
SourceSegment string `json:"SourceSegment"`
TargetSegment string `json:"TargetSegment"`
EntryID int `json:"EntryId"`
LastModified time.Time `json:"LastModified"`
Modifier string `json:"Modifier"`
DocumentName string `json:"DocumentName"`
} `json:"TMEntry"`
} `json:"ConcResult"`
ConcTransResult []struct {
Expression string `json:"Expression"`
Score float64 `json:"Score"`
} `json:"ConcTransResult"`
Errors []struct {
ErrorType int `json:"ErrorType"`
QueryPart string `json:"QueryPart"`
} `json:"Errors"`
TotalConcResult int `json:"TotalConcResult"`
}