Documentation ¶
Index ¶
- Constants
- func CreateReport(portUuid string, stat model.HealthStatus) *model.Report
- type HealthCenter
- func (h *HealthCenter) AddPort(port common.Port)
- func (h *HealthCenter) AddService(topic, uuid string)
- func (h *HealthCenter) ApplyReport(report *model.Report)
- func (h *HealthCenter) Clone() *model.HealthCenter
- func (h *HealthCenter) Delete(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *HealthCenter) EndPoint() string
- func (h *HealthCenter) Get(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *HealthCenter) Patch(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *HealthCenter) Post(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *HealthCenter) Put(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *HealthCenter) ServiceUuids(topic string) []string
- type ServiceCenter
- func (h *ServiceCenter) AddService(topic, uuid string)
- func (h *ServiceCenter) Delete(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *ServiceCenter) EndPoint() string
- func (h *ServiceCenter) Get(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *ServiceCenter) Patch(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *ServiceCenter) Post(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *ServiceCenter) Put(pb proto.Message, port common.Port) (proto.Message, error)
- func (h *ServiceCenter) ServiceUuids(topic string) []string
Constants ¶
View Source
const (
Health_Center_Topic = "Healh Center"
)
View Source
const (
Service_Center_Topic = "Service Center"
)
Variables ¶
This section is empty.
Functions ¶
func CreateReport ¶
func CreateReport(portUuid string, stat model.HealthStatus) *model.Report
Types ¶
type HealthCenter ¶
type HealthCenter struct {
// contains filtered or unexported fields
}
func NewHealthCenter ¶
func NewHealthCenter(introspect common.IIntrospect, servicePoints common.IServicePoints) *HealthCenter
func (*HealthCenter) AddPort ¶
func (h *HealthCenter) AddPort(port common.Port)
func (*HealthCenter) AddService ¶
func (h *HealthCenter) AddService(topic, uuid string)
func (*HealthCenter) ApplyReport ¶
func (h *HealthCenter) ApplyReport(report *model.Report)
func (*HealthCenter) Clone ¶
func (h *HealthCenter) Clone() *model.HealthCenter
func (*HealthCenter) EndPoint ¶
func (h *HealthCenter) EndPoint() string
func (*HealthCenter) ServiceUuids ¶
func (h *HealthCenter) ServiceUuids(topic string) []string
type ServiceCenter ¶
type ServiceCenter struct {
// contains filtered or unexported fields
}
func NewServiceCenter ¶
func NewServiceCenter(registry common.IRegistry, health common.IHealthCeter, servicePoints common.IServicePoints) *ServiceCenter
func (*ServiceCenter) AddService ¶
func (h *ServiceCenter) AddService(topic, uuid string)
func (*ServiceCenter) EndPoint ¶
func (h *ServiceCenter) EndPoint() string
func (*ServiceCenter) ServiceUuids ¶
func (h *ServiceCenter) ServiceUuids(topic string) []string
Click to show internal directories.
Click to hide internal directories.