messaging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 10 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 DirectMessageRequest

type DirectMessageRequest struct {
	Target   string            `json:"target"`
	Method   string            `json:"method"`
	From     string            `json:"from,omitempty"`
	Metadata map[string]string `json:"metadata"`
	Data     []byte            `json:"data,omitempty"`
}

DirectMessageRequest is the request object for directly invoking a remote app

type DirectMessageResponse

type DirectMessageResponse struct {
	Data     []byte            `json:"data"`
	Metadata map[string]string `json:"metadata"`
}

DirectMessageResponse is the response object for directly invoking a remote app

type DirectMessaging

type DirectMessaging interface {
	Invoke(req *DirectMessageRequest) (*DirectMessageResponse, error)
}

DirectMessaging is the API interface for invoking a remote app

func NewDirectMessaging

func NewDirectMessaging(daprID, namespace string, port int, mode modes.DaprMode, appChannel channel.AppChannel, grpcConnectionFn func(address string) (*grpc.ClientConn, error)) DirectMessaging

NewDirectMessaging returns a new direct messaging api

Jump to

Keyboard shortcuts

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