Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Codec ¶ added in v0.4.3
type Codec struct{}
Codec implements the custom codec interface.
type Latency ¶
type Latency struct { Start time.Time `json:"-"` Parsing time.Duration `json:"query_parsing"` Processing time.Duration `json:"processing"` Json time.Duration `json:"json_conversion"` ProtocolBuffer time.Duration `json:"pb_conversion"` }
Latency is used to keep track of the latency involved in parsing and processing the query. It also contains information about the time it took to convert the result into a format(JSON/Protocol Buffer) that the client expects.
type ListChannel ¶
type SubGraph ¶
type SubGraph struct { Attr string Count int Offset int AfterUid uint64 GetCount uint16 Children []*SubGraph IsRoot bool GetUid bool Query []byte // Contains list of source UIDs. Result []byte // Contains UID matrix or list of values for child attributes. // contains filtered or unexported fields }
SubGraph is the way to represent data internally. It contains both the query and the response. Once generated, this can then be encoded to other client convenient formats, like GraphQL / JSON.
func ToSubGraph ¶
ToSubGraph converts the GraphQuery into the internal SubGraph instance type.
Click to show internal directories.
Click to hide internal directories.