mock

package
v0.0.0-...-8ce2553 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegistryMock

type RegistryMock struct {
	mock.Mock
}

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) AutoSync

func (m *RegistryMock) AutoSync()

AutoSync auto sync

func (*RegistryMock) Close

func (m *RegistryMock) Close() error

Close to close the registry mock

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) String

func (m *RegistryMock) String() string

String returns empty string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL