Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteState(storeName, key string) error
- func Error(event *common.InvocationEvent, e error) (*common.Content, 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 SaveState(storeName, key string, data interface{}) error
- func Success(event *common.InvocationEvent, resp interface{}) (*common.Content, error)
- type ApiError
Constants ¶
View Source
const ContentTypeJson = "application/json"
Variables ¶
View Source
var DefaultApiError = ApiError{
Code: 1,
Msg: "api error",
}
Functions ¶
func GetMetaValue ¶
GetMetaValue get the first grpc meta value
func GetMetaValues ¶
GetMetaValues get grpc meta values
func InvokeService ¶
InvokeService 调用dapr服务
Types ¶
Click to show internal directories.
Click to hide internal directories.