Versions in this module Expand all Collapse all v0 v0.0.4 Feb 14, 2022 v0.0.3 Jan 10, 2022 Changes in this version + type Client struct + BaseURL string + Client *http.Client + RequestInterceptor RequestInterceptor + func NewClient(client *http.Client, baseURL string, interceptors ...RequestInterceptor) *Client + func (c *Client) Post(ctx context.Context, operationName, query string, respData interface{}, ...) error + type ErrorResponse struct + GqlErrors *gqlerror.List + NetworkError *HTTPError + func (er *ErrorResponse) Error() string + func (er *ErrorResponse) HasErrors() bool + type GQLRequestInfo struct + Request *Request + func NewGQLRequestInfo(r *Request) *GQLRequestInfo + type GqlErrorList struct + Errors gqlerror.List + func (e *GqlErrorList) Error() string + type HTTPError struct + Code int + Message string + type Request struct + OperationName string + Query string + Variables map[string]interface{} + type RequestInterceptor func(ctx context.Context, req *http.Request, gqlInfo *GQLRequestInfo, ...) error + func ChainInterceptor(interceptors ...RequestInterceptor) RequestInterceptor + type RequestInterceptorFunc func(ctx context.Context, req *http.Request, gqlInfo *GQLRequestInfo, ...) error