mocks

package
v0.0.0-...-8018142 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

README

mocks

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopDiscoveryBackend

type NoopDiscoveryBackend struct {
	Val bool
	// contains filtered or unexported fields
}

NoopDiscoveryBackend is a mock discovery.Backend

func (*NoopDiscoveryBackend) CheckForUpstreamChanges

func (noop *NoopDiscoveryBackend) CheckForUpstreamChanges(_, _, _ string) (didChange, isHealthy bool)

CheckForUpstreamChanges will return the public Val field to mock whether a change has occurred. Will not report a change on the second check unless the Val has been updated externally by the test rig

func (*NoopDiscoveryBackend) CheckRegister

func (noop *NoopDiscoveryBackend) CheckRegister(check *api.AgentCheckRegistration) error

CheckRegister (required for mock interface)

func (*NoopDiscoveryBackend) ServiceDeregister

func (noop *NoopDiscoveryBackend) ServiceDeregister(serviceID string) error

ServiceDeregister (required for mock interface)

func (*NoopDiscoveryBackend) ServiceRegister

func (noop *NoopDiscoveryBackend) ServiceRegister(service *api.AgentServiceRegistration) error

ServiceRegister (required for mock interface)

func (*NoopDiscoveryBackend) UpdateTTL

func (noop *NoopDiscoveryBackend) UpdateTTL(checkID, output, status string) error

UpdateTTL (required for mock interface)

Jump to

Keyboard shortcuts

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