Documentation ¶
Index ¶
- Constants
- type Configuration
- type Factory
- type IntrospectionConfigFactory
- type Planner
- func (p *Planner[T]) ConfigureFetch() resolve.FetchConfiguration
- func (p *Planner[T]) ConfigureSubscription() plan.SubscriptionConfiguration
- func (p *Planner[T]) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
- func (p *Planner[T]) DownstreamResponseFieldAlias(_ int) (alias string, exists bool)
- func (p *Planner[T]) EnterField(ref int)
- func (p *Planner[T]) Register(visitor *plan.Visitor, dataSourceConfiguration plan.DataSourceConfiguration[T], ...) error
- 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 Configuration ¶
type Configuration struct {
SourceType string
}
type Factory ¶
type Factory[T Configuration] struct { // contains filtered or unexported fields }
func NewFactory ¶
func NewFactory[T Configuration](introspectionData *introspection.Data) *Factory[T]
func (*Factory[T]) Planner ¶
func (f *Factory[T]) Planner(logger abstractlogger.Logger) plan.DataSourcePlanner[T]
func (*Factory[T]) UpstreamSchema ¶
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.DataSource
func (*IntrospectionConfigFactory) BuildFieldConfigurations ¶
func (f *IntrospectionConfigFactory) BuildFieldConfigurations() (planFields plan.FieldConfigurations)
type Planner ¶
type Planner[T Configuration] struct { // contains filtered or unexported fields }
func (*Planner[T]) ConfigureFetch ¶
func (p *Planner[T]) ConfigureFetch() resolve.FetchConfiguration
func (*Planner[T]) ConfigureSubscription ¶
func (p *Planner[T]) ConfigureSubscription() plan.SubscriptionConfiguration
func (*Planner[T]) DataSourcePlanningBehavior ¶
func (p *Planner[T]) DataSourcePlanningBehavior() plan.DataSourcePlanningBehavior
func (*Planner[T]) DownstreamResponseFieldAlias ¶
func (*Planner[T]) EnterField ¶
func (*Planner[T]) Register ¶
func (p *Planner[T]) Register(visitor *plan.Visitor, dataSourceConfiguration plan.DataSourceConfiguration[T], dataSourcePlannerConfiguration plan.DataSourcePlannerConfiguration) error
Click to show internal directories.
Click to hide internal directories.