Versions in this module Expand all Collapse all v1 v1.41.0 Jun 27, 2022 Changes in this version + const ServiceDefinitionQuery + type DataSourceObserver interface + UpdateDataSources func(dataSourceConfig []graphqlDataSource.Configuration) + type DataSourceSubject interface + Register func(observer DataSourceObserver) + type DatasourcePollerConfig struct + PollingInterval time.Duration + Services []ServiceConfig + type DatasourcePollerPoller struct + func NewDatasource(serviceConfig []ServiceConfig, httpClient *http.Client) *DatasourcePollerPoller + func NewDatasourcePoller(httpClient *http.Client, config DatasourcePollerConfig) *DatasourcePollerPoller + func (d *DatasourcePollerPoller) Register(updateDatasourceObserver DataSourceObserver) + func (d *DatasourcePollerPoller) Run(ctx context.Context) + type GQLErr []struct + func (g GQLErr) Error() string + type Gateway struct + func Handler(logger log.Logger, datasourcePoller *DatasourcePollerPoller, ...) *Gateway + func NewGateway(gqlHandlerFactory HandlerFactory, httpClient *http.Client, logger log.Logger) *Gateway + func (g *Gateway) Ready() + func (g *Gateway) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (g *Gateway) UpdateDataSources(newDataSourcesConfig []graphqlDataSource.Configuration) + type HandlerFactory interface + Make func(schema *graphql.Schema, engine *graphql.ExecutionEngineV2) http.Handler + type HandlerFactoryFn func(schema *graphql.Schema, engine *graphql.ExecutionEngineV2) http.Handler + func (h HandlerFactoryFn) Make(schema *graphql.Schema, engine *graphql.ExecutionEngineV2) http.Handler + type ServiceConfig struct + Name string + URL string + WS string