Documentation ¶
Index ¶
- type RegistryMock
- func (m *RegistryMock) AddDependencies(request *registry.MicroServiceDependency) error
- func (m *RegistryMock) AddSchemas(microServiceID, schemaName, schemaInfo string) error
- func (m *RegistryMock) AutoSync()
- func (m *RegistryMock) Close() error
- func (m *RegistryMock) FindMicroServiceInstances(consumerID, appID, microServiceName, version string) ([]*registry.MicroServiceInstance, error)
- func (m *RegistryMock) GetAllApplications() ([]string, error)
- func (m *RegistryMock) GetAllMicroServices() ([]*registry.MicroService, error)
- func (m *RegistryMock) GetMicroService(microServiceID string) (*registry.MicroService, error)
- func (m *RegistryMock) GetMicroServiceID(appID, microServiceName, version string) (string, error)
- func (m *RegistryMock) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
- func (m *RegistryMock) GetMicroServicesByInterface(interfaceName string) []*registry.MicroService
- func (m *RegistryMock) GetSchemaContentByInterface(interfaceName string) registry.SchemaContent
- func (m *RegistryMock) GetSchemaContentByServiceName(svcName, version, appID, env string) []*registry.SchemaContent
- func (m *RegistryMock) Heartbeat(microServiceID, microServiceInstanceID string) (bool, error)
- func (m *RegistryMock) RegisterService(microservice *registry.MicroService) (string, error)
- func (m *RegistryMock) RegisterServiceAndInstance(microService *registry.MicroService, instance *registry.MicroServiceInstance) (string, string, error)
- func (m *RegistryMock) RegisterServiceInstance(sid string, instance *registry.MicroServiceInstance) (string, error)
- func (m *RegistryMock) String() string
- func (m *RegistryMock) UnregisterMicroServiceInstance(microServiceID, microServiceInstanceID string) error
- func (m *RegistryMock) UpdateMicroServiceInstanceProperties(microServiceID, microServiceInstanceID string, properties map[string]string) error
- func (m *RegistryMock) UpdateMicroServiceInstanceStatus(microServiceID, microServiceInstanceID, status string) error
- func (m *RegistryMock) UpdateMicroServiceProperties(microServiceID string, properties map[string]string) error
- func (m *RegistryMock) WatchMicroService(selfMicroServiceID string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryMock ¶
RegistryMock struct for register mock
func (*RegistryMock) AddDependencies ¶
func (m *RegistryMock) AddDependencies(request *registry.MicroServiceDependency) error
AddDependencies add dependencies
func (*RegistryMock) AddSchemas ¶
func (m *RegistryMock) AddSchemas(microServiceID, schemaName, schemaInfo string) error
AddSchemas add schemas
func (*RegistryMock) FindMicroServiceInstances ¶
func (m *RegistryMock) FindMicroServiceInstances(consumerID, appID, microServiceName, version string) ([]*registry.MicroServiceInstance, error)
FindMicroServiceInstances find micro-service instances
func (*RegistryMock) GetAllApplications ¶
func (m *RegistryMock) GetAllApplications() ([]string, error)
GetAllApplications get all applications
func (*RegistryMock) GetAllMicroServices ¶
func (m *RegistryMock) GetAllMicroServices() ([]*registry.MicroService, error)
GetAllMicroServices get all microservices
func (*RegistryMock) GetMicroService ¶
func (m *RegistryMock) GetMicroService(microServiceID string) (*registry.MicroService, error)
GetMicroService get micro service
func (*RegistryMock) GetMicroServiceID ¶
func (m *RegistryMock) GetMicroServiceID(appID, microServiceName, version string) (string, error)
GetMicroServiceID get micro-service id
func (*RegistryMock) GetMicroServiceInstances ¶
func (m *RegistryMock) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
GetMicroServiceInstances get micro-service instances
func (*RegistryMock) GetMicroServicesByInterface ¶
func (m *RegistryMock) GetMicroServicesByInterface(interfaceName string) []*registry.MicroService
GetMicroServicesByInterface get services by interface
func (*RegistryMock) GetSchemaContentByInterface ¶
func (m *RegistryMock) GetSchemaContentByInterface(interfaceName string) registry.SchemaContent
GetSchemaContentByInterface get schema content by interface
func (*RegistryMock) GetSchemaContentByServiceName ¶
func (m *RegistryMock) GetSchemaContentByServiceName(svcName, version, appID, env string) []*registry.SchemaContent
GetSchemaContentByServiceName get schema content by service name
func (*RegistryMock) Heartbeat ¶
func (m *RegistryMock) Heartbeat(microServiceID, microServiceInstanceID string) (bool, error)
Heartbeat heart beat
func (*RegistryMock) RegisterService ¶
func (m *RegistryMock) RegisterService(microservice *registry.MicroService) (string, error)
RegisterService register service
func (*RegistryMock) RegisterServiceAndInstance ¶
func (m *RegistryMock) RegisterServiceAndInstance(microService *registry.MicroService, instance *registry.MicroServiceInstance) (string, string, error)
RegisterServiceAndInstance register service and instance
func (*RegistryMock) RegisterServiceInstance ¶
func (m *RegistryMock) RegisterServiceInstance(sid string, instance *registry.MicroServiceInstance) (string, error)
RegisterServiceInstance register service center instance
func (*RegistryMock) UnregisterMicroServiceInstance ¶
func (m *RegistryMock) UnregisterMicroServiceInstance(microServiceID, microServiceInstanceID string) error
UnregisterMicroServiceInstance unregistered micro-service instance
func (*RegistryMock) UpdateMicroServiceInstanceProperties ¶
func (m *RegistryMock) UpdateMicroServiceInstanceProperties(microServiceID, microServiceInstanceID string, properties map[string]string) error
UpdateMicroServiceInstanceProperties update micro-service instance properties
func (*RegistryMock) UpdateMicroServiceInstanceStatus ¶
func (m *RegistryMock) UpdateMicroServiceInstanceStatus(microServiceID, microServiceInstanceID, status string) error
UpdateMicroServiceInstanceStatus update micro-service instance status
func (*RegistryMock) UpdateMicroServiceProperties ¶
func (m *RegistryMock) UpdateMicroServiceProperties(microServiceID string, properties map[string]string) error
UpdateMicroServiceProperties update micro-service properties
func (*RegistryMock) WatchMicroService ¶
func (m *RegistryMock) WatchMicroService(selfMicroServiceID string, callback func(*model.MicroServiceInstanceChangedEvent))
WatchMicroService watch micro-service