counter

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SharedServiceIds util.ConcurrentMap
)

Functions

func RegisterCounter

func RegisterCounter(c Counter)

func RegisterCounterListener

func RegisterCounterListener(pluginName string)

Types

type Counter

type Counter interface {
	OnCreate(t discovery.Type, domainProject string)
	OnDelete(t discovery.Type, domainProject string)
}

type Counters

type Counters []Counter

func GetCounters

func GetCounters() Counters

func (Counters) OnCreate

func (cs Counters) OnCreate(t discovery.Type, domainProject string)

func (Counters) OnDelete

func (cs Counters) OnDelete(t discovery.Type, domainProject string)

type InstanceEventHandler

type InstanceEventHandler struct {
	SharedServiceIds map[string]struct{}
}

InstanceEventHandler counting the number of instances Deprecated: Use metrics instead.

func NewInstanceEventHandler

func NewInstanceEventHandler() *InstanceEventHandler

func (*InstanceEventHandler) OnEvent

func (h *InstanceEventHandler) OnEvent(evt discovery.KvEvent)

func (*InstanceEventHandler) Type

type ServiceIndexEventHandler

type ServiceIndexEventHandler struct {
}

ServiceIndexEventHandler counting the number of services Deprecated: Use metrics instead.

func NewServiceIndexEventHandler

func NewServiceIndexEventHandler() *ServiceIndexEventHandler

func (*ServiceIndexEventHandler) OnEvent

func (h *ServiceIndexEventHandler) OnEvent(evt discovery.KvEvent)

func (*ServiceIndexEventHandler) Type

Jump to

Keyboard shortcuts

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