Documentation ¶
Index ¶
- func FormatForecastResponse(weather *weatherpb.WeatherReply) (*contract.Response, error)
- func FormatParseError(err error) (*contract.Response, error)
- func FormatPlanResponse(plan *weatherpb.PlanReply) (*contract.Response, error)
- func FormatWeatherResponse(weather *weatherpb.WeatherReply) (*contract.Response, error)
- func ParsePlanRequest(request contract.Request) (*weatherpb.PlanRequest, error)
- type Handler
- type ParseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatForecastResponse ¶ added in v0.1.1
func FormatForecastResponse(weather *weatherpb.WeatherReply) (*contract.Response, error)
func FormatParseError ¶ added in v0.1.1
func FormatPlanResponse ¶ added in v0.1.1
func FormatWeatherResponse ¶ added in v0.1.1
func FormatWeatherResponse(weather *weatherpb.WeatherReply) (*contract.Response, error)
func ParsePlanRequest ¶ added in v0.1.1
func ParsePlanRequest(request contract.Request) (*weatherpb.PlanRequest, error)
Types ¶
type Handler ¶
type Handler interface { Weather(contract.Request) (*contract.Response, error) Forecast(contract.Request) (*contract.Response, error) Start() error Stop() error }
func NewHandler ¶
type ParseError ¶ added in v0.1.1
type ParseError struct {
Message string
}
func (ParseError) Error ¶ added in v0.1.1
func (e ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.