Documentation ¶
Index ¶
- Variables
- type API
- func (api *API) GetCurrentReport(ctx context.Context, req *GetCurrentReportRequest) (*GetCurrentReportResponse, error)
- func (api *API) GetForecast(ctx context.Context, req *GetForecastRequest) (*GetForecastResponse, error)
- func (api *API) RegisterStation(s Station, latitude float64, longitude float64)
- type Station
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLocationNotFound is returned if the supplied lat/lon value can't be found. ErrLocationNotFound = status.New(codes.NotFound, "location not found") )
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is an implementation of the WeatherService server.
func (*API) GetCurrentReport ¶
func (api *API) GetCurrentReport(ctx context.Context, req *GetCurrentReportRequest) (*GetCurrentReportResponse, error)
GetCurrentReport gets a weather report
Click to show internal directories.
Click to hide internal directories.