Documentation ¶
Index ¶
- Constants
- type File
- func (f *File) AddDependencies(request *registry.MicroServiceDependency) error
- func (f *File) AddSchemas(microServiceID, schemaName, schemaInfo string) error
- func (f *File) AutoSync()
- func (f *File) Close() error
- func (f *File) FindMicroServiceInstances(consumerID, appID, microServiceName, version string) ([]*registry.MicroServiceInstance, error)
- func (f *File) GetAllApplications() ([]string, error)
- func (f *File) GetAllMicroServices() ([]*registry.MicroService, error)
- func (f *File) GetMicroService(microServiceID string) (*registry.MicroService, error)
- func (f *File) GetMicroServiceID(appID, microServiceName, version string) (string, error)
- func (f *File) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
- func (f *File) GetMicroServicesByInterface(interfaceName string) (services []*registry.MicroService)
- func (f *File) GetSchemaContentByInterface(interfaceName string) (content registry.SchemaContent)
- func (f *File) GetSchemaContentByServiceName(svcName, version, appID, env string) (content []*registry.SchemaContent)
- func (f *File) Heartbeat(microServiceID, microServiceInstanceID string) (bool, error)
- func (f *File) RegisterService(microservice *registry.MicroService) (string, error)
- func (f *File) RegisterServiceAndInstance(microService *registry.MicroService, instance *registry.MicroServiceInstance) (string, string, error)
- func (f *File) RegisterServiceInstance(sid string, instance *registry.MicroServiceInstance) (string, error)
- func (f *File) String() string
- func (f *File) UnregisterMicroServiceInstance(microServiceID, microServiceInstanceID string) error
- func (f *File) UpdateMicroServiceInstanceProperties(microServiceID, microServiceInstanceID string, properties map[string]string) error
- func (f *File) UpdateMicroServiceInstanceStatus(microServiceID, microServiceInstanceID, status string) error
- func (f *File) UpdateMicroServiceProperties(microServiceID string, properties map[string]string) error
- func (f *File) WatchMicroService(selfMicroServiceID string, ...)
- type Options
Constants ¶
const (
Name = "File"
)
constant string for file
const (
// ServiceJSON service json
ServiceJSON = "service.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Name string // contains filtered or unexported fields }
File struct represents file parameters
func (*File) AddDependencies ¶
func (f *File) AddDependencies(request *registry.MicroServiceDependency) error
AddDependencies add dependencies
func (*File) AddSchemas ¶
AddSchemas add schemas
func (*File) FindMicroServiceInstances ¶
func (f *File) FindMicroServiceInstances(consumerID, appID, microServiceName, version string) ([]*registry.MicroServiceInstance, error)
FindMicroServiceInstances find micro-service instances
func (*File) GetAllApplications ¶
GetAllApplications get all applications
func (*File) GetAllMicroServices ¶
func (f *File) GetAllMicroServices() ([]*registry.MicroService, error)
GetAllMicroServices get all microservices
func (*File) GetMicroService ¶
func (f *File) GetMicroService(microServiceID string) (*registry.MicroService, error)
GetMicroService get micro-service
func (*File) GetMicroServiceID ¶
GetMicroServiceID get micro-service id
func (*File) GetMicroServiceInstances ¶
func (f *File) GetMicroServiceInstances(consumerID, providerID string) ([]*registry.MicroServiceInstance, error)
GetMicroServiceInstances get micro-service instances
func (*File) GetMicroServicesByInterface ¶
func (f *File) GetMicroServicesByInterface(interfaceName string) (services []*registry.MicroService)
GetMicroServicesByInterface get micro-services by interface
func (*File) GetSchemaContentByInterface ¶
func (f *File) GetSchemaContentByInterface(interfaceName string) (content registry.SchemaContent)
GetSchemaContentByInterface get schema content by interface
func (*File) GetSchemaContentByServiceName ¶
func (f *File) GetSchemaContentByServiceName(svcName, version, appID, env string) (content []*registry.SchemaContent)
GetSchemaContentByServiceName get schema content by service name
func (*File) RegisterService ¶
func (f *File) RegisterService(microservice *registry.MicroService) (string, error)
RegisterService register service
func (*File) RegisterServiceAndInstance ¶
func (f *File) RegisterServiceAndInstance(microService *registry.MicroService, instance *registry.MicroServiceInstance) (string, string, error)
RegisterServiceAndInstance register service and instance
func (*File) RegisterServiceInstance ¶
func (f *File) RegisterServiceInstance(sid string, instance *registry.MicroServiceInstance) (string, error)
RegisterServiceInstance register service instance
func (*File) UnregisterMicroServiceInstance ¶
UnregisterMicroServiceInstance unregister micro-service instances
func (*File) UpdateMicroServiceInstanceProperties ¶
func (f *File) UpdateMicroServiceInstanceProperties(microServiceID, microServiceInstanceID string, properties map[string]string) error
UpdateMicroServiceInstanceProperties update micro-service instance properities
func (*File) UpdateMicroServiceInstanceStatus ¶
func (f *File) UpdateMicroServiceInstanceStatus(microServiceID, microServiceInstanceID, status string) error
UpdateMicroServiceInstanceStatus update micro-service instance status
func (*File) UpdateMicroServiceProperties ¶
func (f *File) UpdateMicroServiceProperties(microServiceID string, properties map[string]string) error
UpdateMicroServiceProperties update micro-service properities
func (*File) WatchMicroService ¶
func (f *File) WatchMicroService(selfMicroServiceID string, callback func(*model.MicroServiceInstanceChangedEvent))
WatchMicroService watch micro-service