Documentation
¶
Overview ¶
Package server wires HTTP server, GraphQL transports, routes, and middlewares.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware represents an HTTP middleware function.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server aggregates the GraphQL resolvers, router, middlewares and ws init logic.
func NewServer ¶
func NewServer(resolvers generated.ResolverRoot, middlewares []graphql.HandlerExtension, wsInitFunc transport.WebsocketInitFunc) *Server
NewServer creates the HTTP server wiring resolvers, middlewares, and websocket init.
Click to show internal directories.
Click to hide internal directories.