Versions in this module Expand all Collapse all v0 v0.0.2 Aug 29, 2022 Changes in this version + type Client struct + func New(h http.Handler, opts ...Option) *Client + func (p *Client) MustPost(query string, response interface{}, options ...Option) + func (p *Client) Post(query string, response interface{}, options ...Option) error + func (p *Client) RawPost(query string, options ...Option) (*Response, error) + func (p *Client) Websocket(query string, options ...Option) *Subscription + func (p *Client) WebsocketOnce(query string, resp interface{}, options ...Option) error + func (p *Client) WebsocketWithPayload(query string, initPayload map[string]interface{}, options ...Option) *Subscription + type Option func(bd *Request) + func AddCookie(cookie *http.Cookie) Option + func AddHeader(key string, value string) Option + func BasicAuth(username, password string) Option + func Extensions(extensions map[string]interface{}) Option + func Operation(name string) Option + func Path(url string) Option + func Var(name string, value interface{}) Option + func WithFiles() Option + type RawJsonError struct + func (r RawJsonError) Error() string + type Request struct + Extensions map[string]interface{} + HTTP *http.Request + OperationName string + Query string + Variables map[string]interface{} + type Response struct + Data interface{} + Errors json.RawMessage + Extensions map[string]interface{} + type Subscription struct + Close func() error + Next func(response interface{}) error