channel

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// AppChannelMinTLSVersion is the minimum TLS version that the app channel will use.
	AppChannelMinTLSVersion = tls.VersionTLS12
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppChannel

type AppChannel interface {
	GetAppConfig(ctx context.Context, appID string) (*config.ApplicationConfig, error)
	InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest, appID string) (*invokev1.InvokeMethodResponse, error)
	HealthProbe(ctx context.Context) (bool, error)
	SetAppHealth(ah *apphealth.AppHealth)
	TriggerJob(ctx context.Context, name string, data *anypb.Any) (*invokev1.InvokeMethodResponse, error)
}

AppChannel is an abstraction over communications with user code.

type HTTPEndpointAppChannel added in v1.11.0

type HTTPEndpointAppChannel interface {
	InvokeMethod(ctx context.Context, req *invokev1.InvokeMethodRequest, appID string) (*invokev1.InvokeMethodResponse, error)
}

HTTPEndpointAppChannel is an abstraction over communications with http endpoint resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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