Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGateway ¶
func NewGateway(ctx context.Context, cfg *GatewayConfig) (graphql.ExecutableSchema, error)
Types ¶
type DataSource ¶
type GatewayConfig ¶
type GatewayConfig struct {
ServiceDefinitions []*ServiceDefinition
}
type ServiceDefinition ¶
type ServiceDefinition struct { Name string URL string // optional DataSource DataSource }
func NewLocalServiceDefinition ¶
func NewLocalServiceDefinition(name string, es graphql.ExecutableSchema) *ServiceDefinition
func NewRemoteServiceDefinition ¶
func NewRemoteServiceDefinition(name string, endpointURL string) *ServiceDefinition
Click to show internal directories.
Click to hide internal directories.