daprInvoke

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServiceInvocationHandler

func AddServiceInvocationHandler(
	name string,
	f func(context.Context, *common.InvocationEvent) (*common.Content, error),
) error

func AddTopicEventHandler

func AddTopicEventHandler(topic string,
	fn func(ctx context.Context, e *common.TopicEvent) (retry bool, err error),
) error

func InitClient

func InitClient(port string) (err error)

func InitServer

func InitServer(port string) (err error)

func InvokeMethod

func InvokeMethod(serviceAppId, methodName string, data []byte) ([]byte, error)

func MakeOutputContent

func MakeOutputContent(in *common.InvocationEvent, resp interface{}) (out *common.Content, err error)

func PubSubEventCall

func PubSubEventCall(topic string, jsonString string, expire grpc.EventExpire) error

func Start

func Start() error

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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