http

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

func CreateHTTPChannel(host string, port int, sslEnabled bool) (channel.AppChannel, error)

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

func (h *Channel) GetBaseAddress() string

GetBaseAddress returns the application base address.

func (*Channel) InvokeMethod

InvokeMethod invokes user code via HTTP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL