mockpoller

package
v0.0.8-rc8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 5 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) AddAddLocation

func (m *Client) AddAddLocation(f ClientAddLocationFunc)

func (*Client) AddLocation

func (m *Client) AddLocation(ctx context.Context, city, state string) error

func (*Client) AddSubscribe

func (m *Client) AddSubscribe(f ClientSubscribeFunc)

func (*Client) HasMore

func (m *Client) HasMore() bool

func (*Client) SetAddLocation

func (m *Client) SetAddLocation(f ClientAddLocationFunc)

func (*Client) SetSubscribe

func (m *Client) SetSubscribe(f ClientSubscribeFunc)

func (*Client) Subscribe

func (m *Client) Subscribe(ctx context.Context, city, state string) (<-chan *poller1.Forecast, error)

type ClientAddLocationFunc

type ClientAddLocationFunc func(ctx context.Context, city, state string) error

type ClientSubscribeFunc

type ClientSubscribeFunc func(ctx context.Context, city, state string) (<-chan *poller1.Forecast, error)

Jump to

Keyboard shortcuts

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