file

package
v0.0.0-...-5e0f84c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "File"
)

constant string for file

View Source
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

func (f *File) AddSchemas(microServiceID, schemaName, schemaInfo string) error

AddSchemas add schemas

func (*File) AutoSync

func (f *File) AutoSync()

AutoSync auto sync

func (*File) Close

func (f *File) Close() error

Close close the file

func (*File) FindMicroServiceInstances

func (f *File) FindMicroServiceInstances(consumerID, appID, microServiceName, version string) ([]*registry.MicroServiceInstance, error)

FindMicroServiceInstances find micro-service instances

func (*File) GetAllApplications

func (f *File) GetAllApplications() ([]string, error)

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

func (f *File) GetMicroServiceID(appID, microServiceName, version string) (string, error)

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

func (f *File) Heartbeat(microServiceID, microServiceInstanceID string) (bool, error)

Heartbeat check heartbeat of micro-service instance

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

func (f *File) String() string

String returns empty string

func (*File) UnregisterMicroServiceInstance

func (f *File) UnregisterMicroServiceInstance(microServiceID, microServiceInstanceID string) error

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

type Options

type Options struct {
	Addrs []string
}

Options struct having addresses

Jump to

Keyboard shortcuts

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