mockforecaster

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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) AddGetForecast

func (m *Client) AddGetForecast(f ClientGetForecastFunc)

func (*Client) GetForecast

func (m *Client) GetForecast(ctx context.Context, lat, long float64) (*forecaster.Forecast, error)

func (*Client) HasMore

func (m *Client) HasMore() bool

func (*Client) SetGetForecast

func (m *Client) SetGetForecast(f ClientGetForecastFunc)

type ClientGetForecastFunc

type ClientGetForecastFunc func(ctx context.Context, lat, long float64) (*forecaster.Forecast, error)

Jump to

Keyboard shortcuts

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