Versions in this module Expand all Collapse all v0 v0.2.0 May 21, 2024 Changes in this version + func IsClientError(err error) bool + func IsGraphQLError(err error) bool + func IsInternalServerError(err error) bool + func IsInvalidArgumentsError(err error) bool + func IsInvalidError(err error) bool + func IsMaintenanceError(err error) bool + func IsNotFoundError(err error) bool + func IsServerError(err error) bool + func IsServiceUnavailableError(err error) bool + func IsUnauthorizedError(err error) bool + func IsUnprocessableError(err error) bool + type Client struct + Log func(s string) + func NewClient(endpoint string, opts ...ClientOption) *Client + func (c *Client) Run(ctx context.Context, req *Request, resp interface{}) error + type ClientOption func(*Client) + func ImmediatelyCloseReqBody() ClientOption + func UseMultipartForm() ClientOption + func WithHTTPClient(httpclient *http.Client) ClientOption + type File struct + Field string + Name string + R io.Reader + type GraphQLError struct + Err error + Extensions GraphQLErrorExtensions + Message string + Path []string + func (gqlErr *GraphQLError) Error() string + type GraphQLErrorExtensions struct + Code string + Query string + ServiceName string + Variables map[string]string + type HttpError struct + Err error + Response *http.Response + func (e *HttpError) Error() string + type Request struct + Header http.Header + func NewRequest(q string) *Request + func (req *Request) File(fieldname, filename string, r io.Reader) + func (req *Request) Files() []File + func (req *Request) Query() string + func (req *Request) Var(key string, value interface{}) + func (req *Request) Vars() map[string]interface{}