mocks

package
v0.0.0-...-f170a34 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPinger

type MockPinger struct{}

func NewMockPinger

func NewMockPinger() *MockPinger

func (*MockPinger) Init

func (p *MockPinger) Init(_ ...string) error

func (*MockPinger) Ping

func (p *MockPinger) Ping(_ context.Context, url string) error

type MockStorage

type MockStorage struct {
	Lists     map[string][]string
	HashTable map[string]string
}

func (*MockStorage) Close

func (m *MockStorage) Close() error

func (*MockStorage) DelFromList

func (m *MockStorage) DelFromList(listname string, item string) error

func (*MockStorage) DelFromMap

func (m *MockStorage) DelFromMap(_ string, field string) error

func (*MockStorage) GetList

func (m *MockStorage) GetList(key string) ([]string, error)

func (*MockStorage) GetMapField

func (m *MockStorage) GetMapField(_, field string) ([]string, error)

func (*MockStorage) SetMap

func (m *MockStorage) SetMap(_ string, value map[string]interface{}) error

Jump to

Keyboard shortcuts

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