Documentation
¶
Overview ¶
Package executor provides transport implementations for HTTP, gRPC, TCP, and GraphQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCTransport ¶
GRPCTransport is the transport function for gRPC requests.
Types ¶
type Factory ¶
type Factory struct {
Client HTTPClient
}
Factory creates transport functions for different protocols.
func NewFactory ¶
func NewFactory(client HTTPClient) *Factory
NewFactory creates a new executor factory with the given HTTP client.
type HTTPClient ¶
HTTPClient is an interface for a client that can send HTTP requests.
type TransportFunc ¶
TransportFunc is the functional signature for all transport implementations.
func GraphQLTransport ¶
func GraphQLTransport(client HTTPClient) TransportFunc
GraphQLTransport returns a transport function for GraphQL requests.
func HTTPTransport ¶
func HTTPTransport(client HTTPClient) TransportFunc
HTTPTransport returns a transport function for HTTP requests.
func WithTiming ¶
func WithTiming(next TransportFunc) TransportFunc
WithTiming wraps a transport function to measure execution duration.
Click to show internal directories.
Click to hide internal directories.