Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPort = "4000"
Variables ¶
This section is empty.
Functions ¶
func RunServer ¶
RunServer starts an HTTP server with graceful shutdown support. The server will shut down gracefully when the context is cancelled (e.g., on SIGINT/SIGTERM).
func SetupRouter ¶
SetupRouter initializes the router and registers all endpoints
Types ¶
type Deps ¶ added in v0.5.0
type Deps struct {
Federator QueryFederator
// Authenticate rejects requests without a valid consumer token and otherwise
// adds the consumer's identity to the request context (internal/authn's
// RequireAuthMiddleware). Required.
Authenticate func(http.Handler) http.Handler
}
Deps are what the HTTP server serves. cmd/oe/main.go builds them.
type QueryFederator ¶ added in v0.5.0
type QueryFederator interface {
FederateQuery(ctx context.Context, request graphql.Request, consumerInfo *auth.ConsumerAssertion) graphql.Response
}
QueryFederator federates consumer GraphQL queries across providers.
Click to show internal directories.
Click to hide internal directories.