Documentation ¶
Index ¶
- type MetadataService
- func (mts *MetadataService) ExportURL(url *common.URL) (bool, error)
- func (mts *MetadataService) GetExportedURLs(serviceInterface string, group string, version string, protocol string) ([]interface{}, error)
- func (mts *MetadataService) GetServiceDefinition(interfaceName string, group string, version string) (string, error)
- func (mts *MetadataService) GetServiceDefinitionByServiceKey(serviceKey string) (string, error)
- func (mts *MetadataService) GetSubscribedURLs() ([]*common.URL, error)
- func (mts *MetadataService) PublishServiceDefinition(url *common.URL) error
- func (mts *MetadataService) RefreshMetadata(exportedRevision string, subscribedRevision string) (bool, error)
- func (mts *MetadataService) SubscribeURL(url *common.URL) (bool, error)
- func (mts *MetadataService) UnexportURL(url *common.URL) error
- func (mts *MetadataService) UnsubscribeURL(url *common.URL) error
- func (MetadataService) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetadataService ¶
type MetadataService struct { service.BaseMetadataService // contains filtered or unexported fields }
MetadataService is a implement of metadata service which will delegate the remote metadata report This is singleton
func (*MetadataService) ExportURL ¶
func (mts *MetadataService) ExportURL(url *common.URL) (bool, error)
ExportURL will be implemented by in memory service
func (*MetadataService) GetExportedURLs ¶
func (mts *MetadataService) GetExportedURLs(serviceInterface string, group string, version string, protocol string) ([]interface{}, error)
GetExportedURLs will be implemented by in memory service
func (*MetadataService) GetServiceDefinition ¶
func (mts *MetadataService) GetServiceDefinition(interfaceName string, group string, version string) (string, error)
GetServiceDefinition will be implemented by in memory service
func (*MetadataService) GetServiceDefinitionByServiceKey ¶
func (mts *MetadataService) GetServiceDefinitionByServiceKey(serviceKey string) (string, error)
GetServiceDefinitionByServiceKey will be implemented by in memory service
func (*MetadataService) GetSubscribedURLs ¶
func (mts *MetadataService) GetSubscribedURLs() ([]*common.URL, error)
GetSubscribedURLs will be implemented by in memory service
func (*MetadataService) PublishServiceDefinition ¶
func (mts *MetadataService) PublishServiceDefinition(url *common.URL) error
PublishServiceDefinition will call remote metadata's StoreProviderMetadata to store url info and service definition
func (*MetadataService) RefreshMetadata ¶
func (mts *MetadataService) RefreshMetadata(exportedRevision string, subscribedRevision string) (bool, error)
RefreshMetadata will refresh the exported & subscribed metadata to remote metadata report from the inmemory metadata service
func (*MetadataService) SubscribeURL ¶
func (mts *MetadataService) SubscribeURL(url *common.URL) (bool, error)
SubscribeURL will be implemented by in memory service
func (*MetadataService) UnexportURL ¶
func (mts *MetadataService) UnexportURL(url *common.URL) error
UnexportURL remove @url's metadata
func (*MetadataService) UnsubscribeURL ¶
func (mts *MetadataService) UnsubscribeURL(url *common.URL) error
UnsubscribeURL will be implemented by in memory service
func (MetadataService) Version ¶
func (MetadataService) Version() (string, error)
Version will return the remote service version