Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register creates the channel a GraphQL source reads its path from. It holds the path if nothing else does, and otherwise waits to take it over.
func Unregister ¶
Unregister releases a channel's claim on a path. Only the channel that holds the path removes it, so an outgoing engine's teardown cannot remove the source that took over from it.
Types ¶
type GraphQLSource ¶
type GraphQLSource struct {
Path string
// contains filtered or unexported fields
}
GraphQLSource implements the hermod.Source interface for receiving GraphQL requests.
func NewGraphQLSource ¶
func NewGraphQLSource(path string) *GraphQLSource
NewGraphQLSource creates a new GraphQLSource.
func (*GraphQLSource) Close ¶
func (s *GraphQLSource) Close() error
Click to show internal directories.
Click to hide internal directories.