Documentation ¶
Index ¶
- func NewGraphRPCServer(schema *graphql.Schema) *grpc.Server
- func ParseSchemaFromFile(dir string, resolver interface{}) (*graphql.Schema, error)
- type Client
- func (c *Client) Exec(ctx context.Context, req Request) (*Response, error)
- func (c *Client) ExecQuery(ctx context.Context, query string) (*Response, error)
- func (c *Client) WithOperationName(operationName string) Request
- func (c *Client) WithQuery(query string) Request
- func (c *Client) WithVariables(variables map[string]interface{}) Request
- type Request
- func (r Request) Exec(ctx context.Context) (*Response, error)
- func (r Request) ExecQuery(ctx context.Context, query string) (*Response, error)
- func (r Request) ExecWithVariables(ctx context.Context, variables map[string]interface{}) (*Response, error)
- func (r Request) WithOperationName(operationName string) Request
- func (r Request) WithQuery(query string) Request
- func (r Request) WithVariables(variables map[string]interface{}) Request
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGraphRPCServer ¶
func ParseSchemaFromFile ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewGraphRPCClient ¶
func NewGraphRPCClient(cc grpc.ClientConnInterface) *Client
func (*Client) WithOperationName ¶
func (*Client) WithVariables ¶
type Request ¶
type Request struct { Client *Client Query string OperationName string Variables map[string]interface{} }
func (Request) ExecWithVariables ¶
func (Request) WithOperationName ¶
func (Request) WithVariables ¶
Click to show internal directories.
Click to hide internal directories.