Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceDefinitionQuery = `` /* 150-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSourceObserver ¶
type DataSourceObserver interface {
UpdateDataSources(newDataSourcesConfig []graphql.DataSourceConfiguration)
}
type DataSourceSubject ¶
type DataSourceSubject interface {
Register(observer DataSourceObserver)
}
type DatasourcePollerConfig ¶
type DatasourcePollerConfig struct { Services []ServiceConfig PollingInterval time.Duration }
type DatasourcePollerPoller ¶
type DatasourcePollerPoller struct {
// contains filtered or unexported fields
}
func NewDatasource ¶
func NewDatasource(serviceConfig []ServiceConfig, httpClient *http.Client) *DatasourcePollerPoller
func NewDatasourcePoller ¶
func NewDatasourcePoller( httpClient *http.Client, config DatasourcePollerConfig, ) *DatasourcePollerPoller
func (*DatasourcePollerPoller) Register ¶
func (d *DatasourcePollerPoller) Register(updateDatasourceObserver DataSourceObserver)
func (*DatasourcePollerPoller) Run ¶
func (d *DatasourcePollerPoller) Run(ctx context.Context)
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func (*Gateway) UpdateDataSources ¶
func (g *Gateway) UpdateDataSources(newDataSourcesConfig []graphql.DataSourceConfiguration)
Error handling is not finished.
type HandlerFactory ¶
type HandlerFactoryFn ¶
func (HandlerFactoryFn) Make ¶
func (h HandlerFactoryFn) Make(schema *graphql.Schema, engine *graphql.ExecutionEngineV2) http.Handler
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.