birdweather

package
v0.0.0-...-5d5a124 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BirdsForStation

func BirdsForStation(stationid string) (string, []structs.BirdCount)

func RecordCountsForStationPastHours

func RecordCountsForStationPastHours(stationId string, hours int)

Types

type InputDuration

type InputDuration struct {
	// Number of units of time
	Count int `json:"count"`
	// Unit of time (hour/day/week/month/year)
	Unit string `json:"unit"`
	// From date
	From time.Time `json:"from"`
	// To date
	To time.Time `json:"to"`
}

A time period (e.g. last 24 hours) or explicit date duration.

func (*InputDuration) GetCount

func (v *InputDuration) GetCount() int

GetCount returns InputDuration.Count, and is useful for accessing the field via an interface.

func (*InputDuration) GetFrom

func (v *InputDuration) GetFrom() time.Time

GetFrom returns InputDuration.From, and is useful for accessing the field via an interface.

func (*InputDuration) GetTo

func (v *InputDuration) GetTo() time.Time

GetTo returns InputDuration.To, and is useful for accessing the field via an interface.

func (*InputDuration) GetUnit

func (v *InputDuration) GetUnit() string

GetUnit returns InputDuration.Unit, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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