Documentation ¶
Overview ¶
Package cloudsyncmgr provides functionalities to handle the cloud synchronization
Index ¶
- type CloudSync
- type CloudSyncImpl
- func (c *CloudSyncImpl) InitiateCloudSync(isCloudSet string) (err error)
- func (c *CloudSyncImpl) RequestPublish(host string, appID string, message string, topic string) string
- func (c *CloudSyncImpl) RequestSubscribe(host string, appID string, topic string) string
- func (c *CloudSyncImpl) RequestSubscribedData(appID string, topic string, host string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudSync ¶
type CloudSync interface { InitiateCloudSync(isCloudSet string) error //implemented by external REST API RequestPublish(host string, appID string, message string, topic string) string RequestSubscribe(host string, appID string, topic string) string RequestSubscribedData(appID string, topic string, host string) string }
CloudSync is the interface for starting Cloud synchronization
type CloudSyncImpl ¶
type CloudSyncImpl struct{}
CloudSyncImpl struct
func (*CloudSyncImpl) InitiateCloudSync ¶ added in v1.1.4
func (c *CloudSyncImpl) InitiateCloudSync(isCloudSet string) (err error)
InitiateCloudSync initiate CloudSync
func (*CloudSyncImpl) RequestPublish ¶ added in v1.1.8
func (c *CloudSyncImpl) RequestPublish(host string, appID string, message string, topic string) string
RequestPublish is configuration request handler
func (*CloudSyncImpl) RequestSubscribe ¶ added in v1.1.9
func (c *CloudSyncImpl) RequestSubscribe(host string, appID string, topic string) string
RequestSubscribe is configuration request handler
func (*CloudSyncImpl) RequestSubscribedData ¶ added in v1.1.11
func (c *CloudSyncImpl) RequestSubscribedData(appID string, topic string, host string) string
RequestSubscribedData is to get the subscribed data for {topic,url}
Click to show internal directories.
Click to hide internal directories.