Documentation
¶
Index ¶
- Constants
- func DeleteState(storeName, key string) error
- func Error(err error) (*common.Content, error)
- func GetMetaValue(ctx context.Context, key string) string
- func GetMetaValues(ctx context.Context, key string) []string
- func GetServiceInvocationName(version int, namespace, method string) string
- func GetState(storeName, key string) ([]byte, error)
- func Invoke(appId string, version int, namespace, method string, data interface{}, ...) ([]byte, error)
- func Lock(lockStore, lockOwner, resource string, expiryInSeconds int) error
- func Publish(pubSubName, topic string, data interface{}, args ...bool) error
- func SaveState(storeName, key string, value interface{}) error
- func Success(event *common.InvocationEvent, resp any) (*common.Content, error)
- func Unlock(lockStore, lockOwner, resource string) error
- type Event
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 GetServiceInvocationName ¶ added in v1.0.50
GetServiceInvocationName 构造version:namespace:realMethod的方法名
func Invoke ¶
func Invoke(appId string, version int, namespace, method string, data interface{}, args ...string) ([]byte, error)
Invoke 调用dapr服务
Types ¶
type Event ¶
type Event struct { Subscription *common.Subscription Handler common.TopicEventHandler }
Click to show internal directories.
Click to hide internal directories.