Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDomainProject ¶
func GetDomainProject(resource interface{}) (domainProject string)
Types ¶
type Instance ¶
type Instance struct {
DomainProject string
Host string
Endpoints []string
Environment string
AppId string
ServiceName string
Version string
Framework *registry.FrameWorkProperty
Lease int64 // seconds
Timestamp int64 // the seconds from 0 to now
}
func (*Instance) SetLease ¶
func (s *Instance) SetLease(hc *registry.HealthCheck)
func (*Instance) UpdateTimestamp ¶
type Service ¶
type Service struct {
DomainProject string
Environment string
AppId string
ServiceName string
Versions []string
Frameworks []*registry.FrameWorkProperty
Endpoints []string
Timestamp int64 // the seconds from 0 to now
}
func (*Service) AppendEndpoints ¶
func (*Service) AppendFramework ¶
func (s *Service) AppendFramework(property *registry.FrameWorkProperty)
func (*Service) AppendVersion ¶
func (*Service) UpdateTimestamp ¶
Click to show internal directories.
Click to hide internal directories.