Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boundaries ¶
type Config ¶
type Config struct {
Cluster *gocb.Cluster `json:"cluster"`
Bucket string `json:"bucket"`
Parameters Parameters `json:"parameters"`
}
type Join ¶
type Join struct {
// Bucket where the joined table is located.
Bucket string `json:"bucket" required:"true"`
// Reference key in the parent table.
ForeignKey string `json:"foreign_key"`
// Key to assign joined fields in the result tuple.
DestinationKey string `json:"destination_key"`
// Fields to filter.
Fields []string `json:"fields" required:"true"`
// Specify parent if not main bucket (for nested joins).
ForeignParent string `json:"foreign_parent"`
// Reference key in the joined table.
JoinKey string `json:"join_key"`
// Nest another request in the join
JoinQuery *JoinQuery `json:"join_query"`
}
type LabelOption ¶
type Options ¶
type Options struct {
Fields []string `json:"fields"`
Where []string `json:"where"`
Joins []Join `json:"joins"`
Order map[string]string `json:"order"`
QueryString string `json:"query_string"`
Labels map[string][]string `json:"labels"`
LabelsOptions map[string]LabelOption `json:"labels_options"`
Config Config `json:"config"`
}
type Parameters ¶
type QueryResults ¶
type QueryResults struct {
Results []interface{} `json:"results"`
Boundaries Boundaries `json:"boundaries"`
Flags Flags `json:"flags"`
}
Click to show internal directories.
Click to hide internal directories.