Documentation ¶
Index ¶
- type Client
- func (m *Client) AddGetForecast(f ClientGetForecastFunc)
- func (m *Client) AddName(f ClientNameFunc)
- func (m *Client) AddPing(f ClientPingFunc)
- func (m *Client) GetForecast(ctx context.Context, lat, long float64) (*weathergov.Forecast, error)
- func (m *Client) HasMore() bool
- func (m *Client) Name() string
- func (m *Client) Ping(ctx context.Context) error
- func (m *Client) SetGetForecast(f ClientGetForecastFunc)
- func (m *Client) SetName(f ClientNameFunc)
- func (m *Client) SetPing(f ClientPingFunc)
- type ClientGetForecastFunc
- type ClientNameFunc
- type ClientPingFunc
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 (*Client) AddGetForecast ¶
func (m *Client) AddGetForecast(f ClientGetForecastFunc)
func (*Client) AddName ¶
func (m *Client) AddName(f ClientNameFunc)
func (*Client) AddPing ¶
func (m *Client) AddPing(f ClientPingFunc)
func (*Client) GetForecast ¶
func (*Client) SetGetForecast ¶
func (m *Client) SetGetForecast(f ClientGetForecastFunc)
func (*Client) SetName ¶
func (m *Client) SetName(f ClientNameFunc)
func (*Client) SetPing ¶
func (m *Client) SetPing(f ClientPingFunc)
type ClientGetForecastFunc ¶
type ClientNameFunc ¶
type ClientNameFunc func() string
type ClientPingFunc ¶
Click to show internal directories.
Click to hide internal directories.