Versions in this module Expand all Collapse all v1 v1.0.37 Aug 12, 2023 Changes in this version + const ContentTypeJson + func DeleteState(storeName, key string) error + func Error(err error) (*common.Content, error) + func GetInvocationHandlers(registry map[string]*ServiceModule) map[string]common.ServiceInvocationHandler + func GetMetaValue(ctx context.Context, key string) string + func GetMetaValues(ctx context.Context, key string) []string + func GetState(storeName, key string) ([]byte, error) + func Invoke(appId string, version int, namespace, method string, data interface{}, ...) ([]byte, error) + func InvokeWithClient(appId string, version int, namespace, client, 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 RegisterHandlers(app string, module interface{}, ...) error + func SaveState(storeName, key string, value interface{}) error + func Success(event *common.InvocationEvent, resp interface{}) (*common.Content, error) + func Unlock(lockStore, lockOwner, resource string) error + type Event struct + Handler common.TopicEventHandler + Subscription *common.Subscription + func GetEvent(pubsubName, topic string, handler common.TopicEventHandler, args ...bool) Event + type ServiceModule struct + func (sm *ServiceModule) GetAnnotations(args ...string) ([]*serviceModuleHandlerAnnotation, error) + func (sm *ServiceModule) GetRoutes(args ...string) ([]*ServiceModuleRoute, error) + type ServiceModuleRoute struct + App string + CallerId int64 + Client string + Comments []string + Endpoint string + Handler string + IsPublic bool + IsRawResponse bool + Methods []string + Namespace string + Version int