Documentation ¶
Index ¶
- func ConfigJson(config Configuration) json.RawMessage
- type Configuration
- type Factory
- type FederationConfiguration
- type FetchConfiguration
- type GraphQLBody
- type GraphQLSubscriptionClient
- type GraphQLSubscriptionOptions
- type Planner
- func (p *Planner) ConfigureFetch() plan.FetchConfiguration
- func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
- func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
- func (p *Planner) DownstreamResponseFieldAlias(downstreamFieldRef int) (alias string, exists bool)
- func (p *Planner) EnterArgument(ref int)
- func (p *Planner) EnterDocument(operation, definition *ast.Document)
- func (p *Planner) EnterField(ref int)
- func (p *Planner) EnterInlineFragment(ref int)
- func (p *Planner) EnterOperationDefinition(ref int)
- func (p *Planner) EnterSelectionSet(ref int)
- func (p *Planner) LeaveDocument(operation, definition *ast.Document)
- func (p *Planner) LeaveField(ref int)
- func (p *Planner) LeaveInlineFragment(ref int)
- func (p *Planner) LeaveOperationDefinition(ref int)
- func (p *Planner) LeaveSelectionSet(ref int)
- func (p *Planner) Register(visitor *plan.Visitor, config json.RawMessage, isNested bool) error
- type Source
- type SubscriptionConfiguration
- type SubscriptionSource
- type WebSocketGraphQLSubscriptionClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigJson ¶
func ConfigJson(config Configuration) json.RawMessage
Types ¶
type Configuration ¶
type Configuration struct { Fetch FetchConfiguration Subscription SubscriptionConfiguration Federation FederationConfiguration }
func (*Configuration) ApplyDefaults ¶
func (c *Configuration) ApplyDefaults()
type FederationConfiguration ¶
type FetchConfiguration ¶
type GraphQLBody ¶ added in v1.21.0
type GraphQLBody struct { Query string `json:"query,omitempty"` OperationName string `json:"operationName,omitempty"` Variables json.RawMessage `json:"variables,omitempty"` }
type GraphQLSubscriptionClient ¶ added in v1.21.0
type GraphQLSubscriptionClient interface {
Subscribe(ctx context.Context, options GraphQLSubscriptionOptions, next chan<- []byte) error
}
type GraphQLSubscriptionOptions ¶ added in v1.21.0
type GraphQLSubscriptionOptions struct { URL string `json:"url"` Body GraphQLBody `json:"body"` Header http.Header `json:"header"` }
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
func (*Planner) ConfigureFetch ¶
func (p *Planner) ConfigureFetch() plan.FetchConfiguration
func (*Planner) ConfigureSubscription ¶
func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
func (*Planner) DataSourcePlanningBehavior ¶
func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
func (*Planner) DownstreamResponseFieldAlias ¶
func (*Planner) EnterArgument ¶
func (*Planner) EnterDocument ¶
func (*Planner) EnterField ¶
func (*Planner) EnterInlineFragment ¶
func (*Planner) EnterOperationDefinition ¶
func (*Planner) EnterSelectionSet ¶
func (*Planner) LeaveDocument ¶
func (*Planner) LeaveField ¶
func (*Planner) LeaveInlineFragment ¶
func (*Planner) LeaveOperationDefinition ¶
func (*Planner) LeaveSelectionSet ¶
type SubscriptionConfiguration ¶
type SubscriptionConfiguration struct {
URL string
}
type SubscriptionSource ¶ added in v1.21.0
type SubscriptionSource struct {
// contains filtered or unexported fields
}
type WebSocketGraphQLSubscriptionClient ¶ added in v1.21.0
type WebSocketGraphQLSubscriptionClient struct {
// contains filtered or unexported fields
}
func NewWebSocketGraphQLSubscriptionClient ¶ added in v1.21.0
func NewWebSocketGraphQLSubscriptionClient(httpClient *http.Client, ctx context.Context) *WebSocketGraphQLSubscriptionClient
func (*WebSocketGraphQLSubscriptionClient) Subscribe ¶ added in v1.21.0
func (c *WebSocketGraphQLSubscriptionClient) Subscribe(ctx context.Context, options GraphQLSubscriptionOptions, next chan<- []byte) error
Click to show internal directories.
Click to hide internal directories.