weather

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IconArgs

type IconArgs struct {
	Icon string
}

type OpWeather

type OpWeather struct {
	// contains filtered or unexported fields
}

func (*OpWeather) Current

func (o *OpWeather) Current(ctx *base.Context, mainInput *base.OperatorIO, args WeatherArgs) *base.OperatorIO

func (*OpWeather) GetDefaultConfig

func (o *OpWeather) GetDefaultConfig() interface{}

func (*OpWeather) Icon

func (o *OpWeather) Icon(ctx *base.Context, mainInput *base.OperatorIO, args IconArgs) *base.OperatorIO

func (*OpWeather) InitCopyOfOperator

func (o *OpWeather) InitCopyOfOperator(ctx *base.Context, config interface{}, name string) (base.FreepsOperatorWithConfig, error)

type OpenWeatherMapConfig

type OpenWeatherMapConfig struct {
	APIKey   string
	Location string
	Units    string
	Lang     string
}

type WeatherArgs

type WeatherArgs struct {
	Location *string
	Units    *string
	Lang     *string
}

func (*WeatherArgs) Init

func (o *WeatherArgs) Init(ctx *base.Context, op base.FreepsOperator, fn string)

Init initializes the arguments

Jump to

Keyboard shortcuts

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