Documentation
¶
Overview ¶
Package graphqlserver implements a GraphQL mock server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the GraphQL mock server.
func New ¶
func New(cfg *config.GraphQLConfig, store *state.Store, sc *scenarios.Store, log *logger.Logger) *Server
New creates a Server.
func (*Server) GetMocks ¶
func (s *Server) GetMocks() []config.GraphQLMock
func (*Server) SetMocks ¶
func (s *Server) SetMocks(mocks []config.GraphQLMock)
func (*Server) StatusInfo ¶
StatusInfo returns JSON-serialisable server info.
Click to show internal directories.
Click to hide internal directories.