Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fnh ¶
Fnh is the Fn Helper utility.
func (*Fnh) GraphQL ¶
func (f *Fnh) GraphQL(greq *GraphQLRequest, out interface{}) error
GraphQL Query via the /v1/graphql endpoint of the Data service.
func (*Fnh) Query ¶
func (f *Fnh) Query(qreq *QueryRequest) (*QueryResponse, error)
Query runs a query request to the GraphQL service via the /query endpoint.
type GraphQLRequest ¶
type GraphQLRequest struct {
Query string `json:"query"`
Vars map[string]interface{} `json:"vars"`
}
GraphQLRequest is a request for a GraphQL query.
type QueryErrorResponse ¶
QueryErrorResponse is the response for a Query request when it fails.
type QueryRequest ¶
QueryRequest is a request sent to
type QueryResponse ¶
type QueryResponse struct {
ResultType string `json:"result_type"`
Result [][]string `json:"result"`
}
QueryResponse is the response for a Query request.
Click to show internal directories.
Click to hide internal directories.