weather

package
v0.0.0-...-2eb6bad Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCurrentWeatherArgs

type GetCurrentWeatherArgs struct {
	Query    string `json:"query"  validate:"required"`
	Language string `json:"lang"`
}

type Service

type Service interface {
	GetCurrentWeather(ctx context.Context, args GetCurrentWeatherArgs) (*rest.Weather, error)
}

func NewService

func NewService(config *conf.AppConf) Service

Jump to

Keyboard shortcuts

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