Documentation
¶
Index ¶
- Constants
- func DeleteState(storeName, key string) error
- func GetState(storeName, key string) ([]byte, error)
- func InvokeService(appId, methodName string, data interface{}) ([]byte, error)
- func InvokeServiceWithClient(daprClient client.Client, appId, methodName string, data interface{}) ([]byte, error)
- func Publish(pubSubName, topic string, data interface{}) error
- func Reply(event *common.InvocationEvent, resp interface{}) *common.Content
- func SaveState(storeName, key string, data interface{}) error
Constants ¶
View Source
const ContentTypeJson = "application/json"
Variables ¶
This section is empty.
Functions ¶
func InvokeService ¶
InvokeService 调用dapr服务
func InvokeServiceWithClient ¶
func InvokeServiceWithClient(daprClient client.Client, appId, methodName string, data interface{}) ([]byte, error)
InvokeServiceWithClient 需要传入daprClient去调用
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.