Documentation ¶
Index ¶
- Constants
- func NewGraphQL(logger logger.Logger) bindings.OutputBinding
- type GraphQL
- func (gql *GraphQL) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (gql *GraphQL) Init(_ context.Context, meta bindings.Metadata) error
- func (gql *GraphQL) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (gql *GraphQL) Operations() []bindings.OperationKind
Constants ¶
View Source
const ( QueryOperation bindings.OperationKind = "query" MutationOperation bindings.OperationKind = "mutation" )
Variables ¶
This section is empty.
Functions ¶
func NewGraphQL ¶
func NewGraphQL(logger logger.Logger) bindings.OutputBinding
NewGraphQL returns a new GraphQL binding instance.
Types ¶
type GraphQL ¶
type GraphQL struct {
// contains filtered or unexported fields
}
GraphQL represents GraphQL output bindings.
func (*GraphQL) GetComponentMetadata ¶ added in v1.11.0
func (gql *GraphQL) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
func (*GraphQL) Invoke ¶
func (gql *GraphQL) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
Invoke handles all invoke operations.
func (*GraphQL) Operations ¶
func (gql *GraphQL) Operations() []bindings.OperationKind
Operations returns list of operations supported by GraphQL binding.
Click to show internal directories.
Click to hide internal directories.