Documentation ¶
Index ¶
Constants ¶
View Source
const (
// HTTPStatusCode is an dapr http channel status code.
HTTPStatusCode = "http.status_code"
)
Variables ¶
This section is empty.
Functions ¶
func CreateNonLocalChannel ¶
func CreateNonLocalChannel(config ChannelConfigurationForHTTPEndpoints) (channel.HTTPEndpointAppChannel, error)
CreateNonLocalChannel creates an HTTP AppChannel for external service invocation.
Types ¶
type ChannelConfigurationForHTTPEndpoints ¶
type ChannelConfigurationForHTTPEndpoints struct { Client *http.Client CompStore *compstore.ComponentStore MaxConcurrency int Pipeline httpMiddleware.Pipeline TracingSpec config.TracingSpec MaxRequestBodySizeMB int }
ChannelConfigurationForHTTPEndpoints is the configuration used to create an HTTP AppChannel for external service invocation.
type HTTPEndpointAppChannel ¶
type HTTPEndpointAppChannel struct {
// contains filtered or unexported fields
}
HTTPEndpointAppChannel is an HTTP implementation of an AppChannel.
func (*HTTPEndpointAppChannel) InvokeMethod ¶
func (h *HTTPEndpointAppChannel) InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest, appID string) (rsp *invokev1.InvokeMethodResponse, err error)
InvokeMethod invokes external http endpoint via HTTP.
Click to show internal directories.
Click to hide internal directories.