grpc

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

Channel is a concrete AppChannel implementation for interacting with gRPC based user code.

func CreateLocalChannel

func CreateLocalChannel(port, maxConcurrency int, conn *grpc.ClientConn, spec config.TracingSpec, maxRequestBodySize int, readBufferSize int, baseAddress string, appAPIToken string) *Channel

CreateLocalChannel creates a gRPC connection with user code.

func (*Channel) AddAppTokenToContext added in v1.15.13

func (g *Channel) AddAppTokenToContext(ctx context.Context) context.Context

AddAppTokenToContext adds the app API token to the outgoing gRPC context using the token captured at channel creation time

func (*Channel) GetAppConfig added in v1.2.0

func (g *Channel) GetAppConfig(_ context.Context, appID string) (*config.ApplicationConfig, error)

GetAppConfig gets application config from user application.

func (*Channel) HealthProbe added in v1.9.0

func (g *Channel) HealthProbe(ctx context.Context) (*apphealth.Status, error)

HealthProbe performs a health probe.

func (*Channel) InvokeMethod

InvokeMethod invokes user code via gRPC.

func (*Channel) SetAppHealth added in v1.9.0

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

SetAppHealth sets the apphealth.AppHealth object.

func (*Channel) TriggerJob added in v1.14.0

func (g *Channel) TriggerJob(ctx context.Context, name string, data *anypb.Any) (*invokev1.InvokeMethodResponse, error)

TriggerJob sends the triggered job to the app via gRPC.

Jump to

Keyboard shortcuts

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