mocks

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) GetAllServiceEndpoints

func (_m *Client) GetAllServiceEndpoints() ([]types.ServiceEndpoint, error)

GetAllServiceEndpoints provides a mock function with given fields:

func (*Client) GetServiceEndpoint

func (_m *Client) GetServiceEndpoint(serviceId string) (types.ServiceEndpoint, error)

GetServiceEndpoint provides a mock function with given fields: serviceId

func (*Client) IsAlive

func (_m *Client) IsAlive() bool

IsAlive provides a mock function with given fields:

func (*Client) IsServiceAvailable

func (_m *Client) IsServiceAvailable(serviceId string) (bool, error)

IsServiceAvailable provides a mock function with given fields: serviceId

func (*Client) Register

func (_m *Client) Register() error

Register provides a mock function with given fields:

func (*Client) RegisterCheck

func (_m *Client) RegisterCheck(id string, name string, notes string, url string, interval string) error

RegisterCheck provides a mock function with given fields: id, name, notes, url, interval

func (*Client) Unregister

func (_m *Client) Unregister() error

Unregister provides a mock function with given fields:

Jump to

Keyboard shortcuts

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