treediagram

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

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 FormatParseError(err error) (*contract.Response, error)

func FormatPlanResponse added in v0.1.1

func FormatPlanResponse(plan *weatherpb.PlanReply) (*contract.Response, error)

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

func NewHandler(logger zerolog.Logger, client weatherpb.WeatherClient, addr string) Handler

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

Jump to

Keyboard shortcuts

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