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 CreateHTTPChannel ¶
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is an HTTP implementation of an AppChannel.
func (*Channel) GetAppConfig ¶
func (h *Channel) GetAppConfig() (*config.ApplicationConfig, error)
GetAppConfig gets application config from user application GET http://localhost:<app_port>/dapr/config
func (*Channel) GetBaseAddress ¶
GetBaseAddress returns the application base address.
func (*Channel) InvokeMethod ¶
func (h *Channel) InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest) (*invokev1.InvokeMethodResponse, error)
InvokeMethod invokes user code via HTTP.
Click to show internal directories.
Click to hide internal directories.