Documentation ¶
Index ¶
- func ConfigJson(config Configuration) json.RawMessage
- type Configuration
- type Connector
- type EventConfiguration
- type EventType
- type Factory
- type Planner
- func (p *Planner) ConfigureFetch() resolve.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) EnterDocument(operation, definition *ast.Document)
- func (p *Planner) EnterField(ref int)
- func (p *Planner) Register(visitor *plan.Visitor, configuration plan.DataSourceConfiguration, ...) error
- func (p *Planner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration) *ast.Document
- type PubSub
- type PublishDataSource
- type RequestDataSource
- type SubscriptionSource
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 {
Events []EventConfiguration `json:"events"`
}
type EventConfiguration ¶
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) EnterDocument ¶
func (*Planner) EnterField ¶
func (*Planner) Register ¶
func (p *Planner) Register(visitor *plan.Visitor, configuration plan.DataSourceConfiguration, dataSourcePlannerConfiguration plan.DataSourcePlannerConfiguration) error
func (*Planner) UpstreamSchema ¶
func (p *Planner) UpstreamSchema(dataSourceConfig plan.DataSourceConfiguration) *ast.Document
type PubSub ¶
type PubSub interface { // ID is the unique identifier of the pubsub implementation (e.g. NATS) // This is used to uniquely identify a subscription ID() string // Subscribe starts listening on the given topic and sends the received messages to the given next channel Subscribe(ctx context.Context, topic string, updater resolve.SubscriptionUpdater) error // Publish sends the given data to the given topic Publish(ctx context.Context, topic string, data []byte) error // Request sends a request on the given topic and writes the response to the given writer Request(ctx context.Context, topic string, data []byte, w io.Writer) error }
PubSub describe the interface that implements the primitive operations for pubsub
type PublishDataSource ¶
type PublishDataSource struct {
// contains filtered or unexported fields
}
type RequestDataSource ¶
type RequestDataSource struct {
// contains filtered or unexported fields
}
type SubscriptionSource ¶
type SubscriptionSource struct {
// contains filtered or unexported fields
}
func (*SubscriptionSource) Start ¶
func (s *SubscriptionSource) Start(ctx *resolve.Context, input []byte, updater resolve.SubscriptionUpdater) error
func (*SubscriptionSource) UniqueRequestID ¶
func (s *SubscriptionSource) UniqueRequestID(ctx *resolve.Context, input []byte, xxh *xxhash.Digest) error
Click to show internal directories.
Click to hide internal directories.