Documentation
¶
Index ¶
- Constants
- func DeleteState(storeName, key string) error
- func GetMetaValue(ctx context.Context, key string) string
- func GetMetaValues(ctx context.Context, key string) []string
- func GetState(storeName, key string) ([]byte, error)
- func InvokeService(appId, methodName string, data interface{}, args ...string) ([]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 proto.Message) *common.Content
- func SaveState(storeName, key string, data interface{}) error
Constants ¶
View Source
const ContentTypeJson = "application/json"
Variables ¶
This section is empty.
Functions ¶
func GetMetaValue ¶
GetMetaValue get the first grpc meta value
func GetMetaValues ¶
GetMetaValues get grpc meta values
func InvokeService ¶
InvokeService 调用dapr服务
func InvokeServiceWithClient ¶
func InvokeServiceWithClient(daprClient client.Client, appId, methodName string, data interface{}, args ...string) ([]byte, error)
InvokeServiceWithClient 需要传入daprClient去调用
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.