Documentation ¶
Index ¶
- type AroundRequest
- type Client
- func (c *Client) Mutation(ctx context.Context, operationName string, query string, ...) (transport.OperationResponse, error)
- func (c *Client) Query(ctx context.Context, operationName string, query string, ...) (transport.OperationResponse, error)
- func (es *Client) RunAroundRequest(req transport.Request, h RequestHandler) transport.Response
- func (c *Client) Subscription(ctx context.Context, operationName string, query string, ...) transport.Response
- func (es *Client) Use(e Extension)
- type Extension
- type RequestHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AroundRequest ¶
type AroundRequest interface {
AroundRequest(req transport.Request, next RequestHandler) transport.Response
}
type Client ¶
func (*Client) Mutation ¶
func (c *Client) Mutation(ctx context.Context, operationName string, query string, variables map[string]interface{}, t interface{}, overrideRequestOptions ...transport.HttpRequestOption) (transport.OperationResponse, error)
Mutation runs a mutation operationName is optional
func (*Client) Query ¶
func (c *Client) Query(ctx context.Context, operationName string, query string, variables map[string]interface{}, t interface{}, overrideRequestOptions ...transport.HttpRequestOption) (transport.OperationResponse, error)
Query runs a query operationName is optional
func (*Client) RunAroundRequest ¶
func (es *Client) RunAroundRequest(req transport.Request, h RequestHandler) transport.Response
Click to show internal directories.
Click to hide internal directories.