Versions in this module Expand all Collapse all v0 v0.25.3 Sep 23, 2024 Changes in this version + func MarshalJSON(v interface{}) ([]byte, error) + type Client struct + BaseURL string + Client *http.Client + CustomDo RequestInterceptorFunc + ParseDataWhenErrors bool + RequestInterceptor RequestInterceptor + func NewClient(client *http.Client, baseURL string, options *Options, ...) *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 FormField struct + Name string + Value interface{} + 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 MultipartFile struct + File graphql.Upload + Index int + type MultipartFilesGroup struct + Files []MultipartFile + IsMultiple bool + type Options struct + ParseDataAlongWithErrors bool + 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