Documentation ¶
Overview ¶
Package count provides test registry chain elements for counting Register/Unregister/Find
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkServiceEndpointRegistryClient ¶
func NewNetworkServiceEndpointRegistryClient(counter *CallCounter) registry.NetworkServiceEndpointRegistryClient
NewNetworkServiceEndpointRegistryClient - creates a new chain element counting Register / Unregister / Find calls
func NewNetworkServiceRegistryClient ¶
func NewNetworkServiceRegistryClient(counter *CallCounter) registry.NetworkServiceRegistryClient
NewNetworkServiceRegistryClient - creates a new chain element counting Register / Unregister / Find calls
Types ¶
type CallCounter ¶
type CallCounter struct {
// contains filtered or unexported fields
}
CallCounter - stores Register / Unregister / Find calls count
func (*CallCounter) Registers ¶
func (c *CallCounter) Registers() int
Registers returns Register call count
func (*CallCounter) Unregisters ¶
func (c *CallCounter) Unregisters() int
Unregisters returns Unregister count
Click to show internal directories.
Click to hide internal directories.