mocknominatim

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(t *testing.T) *Client

func (*Client) AddName

func (m *Client) AddName(f ClientNameFunc)

func (*Client) AddPing

func (m *Client) AddPing(f ClientPingFunc)

func (*Client) AddSearch

func (m *Client) AddSearch(f ClientSearchFunc)

func (*Client) HasMore

func (m *Client) HasMore() bool

func (*Client) Name

func (m *Client) Name() string

func (*Client) Ping

func (m *Client) Ping(ctx context.Context) error

func (*Client) Search

func (m *Client) Search(ctx context.Context, query string) ([]*nominatim.Location, error)

func (*Client) SetName

func (m *Client) SetName(f ClientNameFunc)

func (*Client) SetPing

func (m *Client) SetPing(f ClientPingFunc)

func (*Client) SetSearch

func (m *Client) SetSearch(f ClientSearchFunc)

type ClientNameFunc

type ClientNameFunc func() string

type ClientPingFunc

type ClientPingFunc func(ctx context.Context) error

type ClientSearchFunc

type ClientSearchFunc func(ctx context.Context, query string) ([]*nominatim.Location, error)

Jump to

Keyboard shortcuts

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