messaging

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 27 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 DirectMessaging

type DirectMessaging interface {
	Invoke(ctx context.Context, targetAppID string, req *invokev1.InvokeMethodRequest) (*invokev1.InvokeMethodResponse, error)
}

DirectMessaging is the API interface for invoking a remote app.

func NewDirectMessaging

func NewDirectMessaging(opts NewDirectMessagingOpts) DirectMessaging

NewDirectMessaging returns a new direct messaging api.

type NewDirectMessagingOpts added in v1.9.0

type NewDirectMessagingOpts struct {
	AppID               string
	Namespace           string
	Port                int
	Mode                modes.DaprMode
	AppChannel          channel.AppChannel
	ClientConnFn        messageClientConnection
	Resolver            nr.Resolver
	MaxRequestBodySize  int
	Proxy               Proxy
	ReadBufferSize      int
	Resiliency          resiliency.Provider
	IsResiliencyEnabled bool
}

NewDirectMessaging contains the options for NewDirectMessaging.

type Proxy added in v1.3.0

type Proxy interface {
	Handler() grpc.StreamHandler
	SetRemoteAppFn(func(string) (remoteApp, error))
	SetTelemetryFn(func(context.Context) context.Context)
}

Proxy is the interface for a gRPC transparent proxy.

func NewProxy added in v1.3.0

func NewProxy(connectionFactory messageClientConnection, appID string, localAppAddress string, remoteDaprPort int, acl *config.AccessControlList, sslEnabled bool, resiliency resiliency.Provider) Proxy

NewProxy returns a new proxy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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