Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodedJSON ¶
type EncodedJSON string
An 'encoded JSON' type that encodes to native JSON.
func (EncodedJSON) MarshalJSON ¶
func (s EncodedJSON) MarshalJSON() ([]byte, error)
func (*EncodedJSON) UnmarshalJSON ¶
func (s *EncodedJSON) UnmarshalJSON(data []byte) error
type Entry ¶
type Entry struct { Key Key `json:"key"` ValueJSON EncodedJSON `json:"value_json"` Timestamp time.Time `json:"timestamp"` }
Entry uses 'raw' JSON for its ValueJSON field: you can replace the GetResponse with your own result type matching this JSON data fingerprint to have automated decoding via clientutil.Call().
type GetRequest ¶
type GetRequest struct {
Keys []Key `json:"keys"`
}
type GetResponse ¶
type GetResponse struct {
Results []*Entry `json:"results"`
}
type LoadRequest ¶
type QueryParam ¶
type QueryParam struct { Name string `json:"name"` Value interface{} `json:"value"` }
type QueryRequest ¶
type QueryRequest struct { QueryName string `json:"query_name"` Params []QueryParam `json:"params"` Shards []string `json:"shards"` }
func (*QueryRequest) ParamsMap ¶
func (r *QueryRequest) ParamsMap() map[string]interface{}
type QueryResponse ¶
type QueryResponse struct { Results [][]interface{} `json:"results"` Partial bool `json:"partial"` }
Click to show internal directories.
Click to hide internal directories.