health

package
v0.0.0-...-c92cbe1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func (h *HealthCenter) Delete(pb proto.Message, port common.Port) (proto.Message, error)

func (*HealthCenter) EndPoint

func (h *HealthCenter) EndPoint() string

func (*HealthCenter) Get

func (h *HealthCenter) Get(pb proto.Message, port common.Port) (proto.Message, error)

func (*HealthCenter) Patch

func (h *HealthCenter) Patch(pb proto.Message, port common.Port) (proto.Message, error)

func (*HealthCenter) Post

func (h *HealthCenter) Post(pb proto.Message, port common.Port) (proto.Message, error)

func (*HealthCenter) Put

func (h *HealthCenter) Put(pb proto.Message, port common.Port) (proto.Message, error)

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

func (h *ServiceCenter) Delete(pb proto.Message, port common.Port) (proto.Message, error)

func (*ServiceCenter) EndPoint

func (h *ServiceCenter) EndPoint() string

func (*ServiceCenter) Get

func (h *ServiceCenter) Get(pb proto.Message, port common.Port) (proto.Message, error)

func (*ServiceCenter) Patch

func (h *ServiceCenter) Patch(pb proto.Message, port common.Port) (proto.Message, error)

func (*ServiceCenter) Post

func (h *ServiceCenter) Post(pb proto.Message, port common.Port) (proto.Message, error)

func (*ServiceCenter) Put

func (h *ServiceCenter) Put(pb proto.Message, port common.Port) (proto.Message, error)

func (*ServiceCenter) ServiceUuids

func (h *ServiceCenter) ServiceUuids(topic string) []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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