forecast

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin() plugins.BotMessagePlugin

Types

type WeatherHacks

type WeatherHacks struct {
	Copyright struct {
		Image struct {
			Height int    `json:"height"`
			Link   string `json:"link"`
			Title  string `json:"title"`
			URL    string `json:"url"`
			Width  int    `json:"width"`
		} `json:"image"`
		Link     string `json:"link"`
		Provider []struct {
			Link string `json:"link"`
			Name string `json:"name"`
		} `json:"provider"`
		Title string `json:"title"`
	} `json:"copyright"`
	Description struct {
		PublicTime string `json:"publicTime"`
		Text       string `json:"text"`
	} `json:"description"`
	Forecasts []struct {
		Date      string `json:"date"`
		DateLabel string `json:"dateLabel"`
		Image     struct {
			Height int    `json:"height"`
			Title  string `json:"title"`
			URL    string `json:"url"`
			Width  int    `json:"width"`
		} `json:"image"`
		Telop       string `json:"telop"`
		Temperature struct {
			Max struct {
				Celsius    string `json:"celsius"`
				Fahrenheit string `json:"fahrenheit"`
			} `json:"max"`
			Min interface{} `json:"min"`
		} `json:"temperature"`
	} `json:"forecasts"`
	Link     string `json:"link"`
	Location struct {
		Area       string `json:"area"`
		City       string `json:"city"`
		Prefecture string `json:"prefecture"`
	} `json:"location"`
	PinpointLocations []struct {
		Link string `json:"link"`
		Name string `json:"name"`
	} `json:"pinpointLocations"`
	PublicTime string `json:"publicTime"`
	Title      string `json:"title"`
}

Jump to

Keyboard shortcuts

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