Documentation ¶
Index ¶
- Constants
- type Factory
- type IntrospectionConfigFactory
- type Planner
- func (p *Planner) ConfigureFetch() resolve.FetchConfiguration
- func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
- func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
- func (p *Planner) DownstreamResponseFieldAlias(_ int) (alias string, exists bool)
- func (p *Planner) EnterField(ref int)
- func (p *Planner) Register(visitor *plan.Visitor, dataSourceConfiguration plan.DataSourceConfiguration, ...) error
- func (p *Planner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration) *ast.Document
- type Source
Constants ¶
View Source
const ( SchemaRequestType requestType = iota + 1 TypeRequestType TypeFieldsRequestType TypeEnumValuesRequestType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(introspectionData *introspection.Data) *Factory
type IntrospectionConfigFactory ¶
type IntrospectionConfigFactory struct {
// contains filtered or unexported fields
}
func NewIntrospectionConfigFactory ¶
func NewIntrospectionConfigFactory(schema *ast.Document) (*IntrospectionConfigFactory, error)
func (*IntrospectionConfigFactory) BuildDataSourceConfigurations ¶
func (f *IntrospectionConfigFactory) BuildDataSourceConfigurations() []plan.DataSourceConfiguration
func (*IntrospectionConfigFactory) BuildFieldConfigurations ¶
func (f *IntrospectionConfigFactory) BuildFieldConfigurations() (planFields plan.FieldConfigurations)
type Planner ¶
type Planner struct {
// contains filtered or unexported fields
}
func (*Planner) ConfigureFetch ¶
func (p *Planner) ConfigureFetch() resolve.FetchConfiguration
func (*Planner) ConfigureSubscription ¶
func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration
func (*Planner) DataSourcePlanningBehavior ¶
func (p *Planner) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
func (*Planner) DownstreamResponseFieldAlias ¶
func (*Planner) EnterField ¶
func (*Planner) Register ¶
func (p *Planner) Register(visitor *plan.Visitor, dataSourceConfiguration plan.DataSourceConfiguration, dataSourcePlannerConfiguration plan.DataSourcePlannerConfiguration) error
func (*Planner) UpstreamSchema ¶
func (p *Planner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration) *ast.Document
Click to show internal directories.
Click to hide internal directories.