Documentation
¶
Overview ¶
Package endpoint implements different endpoint services required by the api-gateway service
Package endpoint implements different endpoint services required by the api-gateway service ¶
Package endpoint implements different endpoint services required by the api-gateway service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointCreatorContract ¶
type EndpointCreatorContract interface { // GraphQLEndpoint creates GraphQL endpoint // Returns the GraphQL endpoint GraphQLEndpoint() endpoint.Endpoint }
EndpointCreatorContract declares the contract that creates endpoints to create new edgeCluster, read, update and delete existing edgeClusters.
func NewEndpointCreatorService ¶
func NewEndpointCreatorService( resolverCreator types.ResolverCreatorContract) (EndpointCreatorContract, error)
NewEndpointCreatorService creates new instance of the EndpointCreatorService, setting up all dependencies and returns the instance Returns the new service or error if something goes wrong
type GraphQLRequest ¶
type GraphQLRequest struct { Query string `json:"query"` OperationName string `json:"operationName"` Variables map[string]interface{} `json:"variables"` }
GraphQLRequest contains the request to process the GraphQL request
type GraphQLResponse ¶
type GraphQLResponse struct { Err error Response graphql.Response }
GraphQLResponse contains the result of processing the GraphQL request