jkmisc

package
v0.0.0-...-a9e9222 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JKWether

type JKWether struct {
	JKWetherBase
	// contains filtered or unexported fields
}

func JKWetherNew

func JKWetherNew(key string) (*JKWether, error)

func (*JKWether) Query

func (w *JKWether) Query(location string) (*JKWetherInfo, error)

func (*JKWether) QueryCity

func (w *JKWether) QueryCity() (*[]JKWetherCity, error)

type JKWetherBase

type JKWetherBase struct {
	Result  map[string]interface{}
	ResultW JKWetherInfo
	// contains filtered or unexported fields
}

type JKWetherCity

type JKWetherCity struct {
}

type JKWetherInfo

type JKWetherInfo struct {
	Error_code int
	Result     JKWetherInfoResult
	// Get time of this information
	GetTime int64
}

type JKWetherInfoFuture

type JKWetherInfoFuture struct {
}

type JKWetherInfoResult

type JKWetherInfoResult struct {
	Sk     JKWetherInfoResultSk
	Today  JKWetherInfoToday
	Future JKWetherInfoFuture
}

type JKWetherInfoResultSk

type JKWetherInfoResultSk struct {
	Temp     string
	Humidity string
}

type JKWetherInfoToday

type JKWetherInfoToday struct {
	Wind        string
	Week        string
	City        string
	Temperature string
}

type JKWetherInterface

type JKWetherInterface interface {
	Query(location string) (*JKWetherInfo, error)
	QueryCity() (*[]JKWetherCity, error)
}

Jump to

Keyboard shortcuts

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