http

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 23 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 CreateLocalChannel

func CreateLocalChannel(port, maxConcurrency int, pipeline httpMiddleware.Pipeline, spec config.TracingSpec, sslEnabled bool, maxRequestBodySize, readBufferSize int) (channel.AppChannel, error)

CreateLocalChannel creates an HTTP AppChannel

Types

type Channel

type Channel struct {
	// contains filtered or unexported fields
}

Channel is an HTTP implementation of an AppChannel.

func (*Channel) GetAppConfig added in v1.2.0

func (h *Channel) GetAppConfig() (*config.ApplicationConfig, error)

GetAppConfig gets application config from user application GET http://localhost:<app_port>/dapr/config

func (*Channel) GetBaseAddress added in v0.6.0

func (h *Channel) GetBaseAddress() string

GetBaseAddress returns the application base address.

func (*Channel) HealthProbe added in v1.9.0

func (h *Channel) HealthProbe(ctx context.Context) (bool, error)

HealthProbe performs a health probe.

func (*Channel) InvokeMethod

InvokeMethod invokes user code via HTTP.

func (*Channel) SetAppHealth added in v1.9.0

func (h *Channel) SetAppHealth(ah *apphealth.AppHealth)

SetAppHealth sets the apphealth.AppHealth object.

func (*Channel) SetAppHealthCheckPath added in v1.9.0

func (h *Channel) SetAppHealthCheckPath(path string)

SetAppHealthCheckPath sets the path where to send requests for health probes.

Jump to

Keyboard shortcuts

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