quebec

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = &core.ScriptDescriptor{
	Name:        "quebec",
	Description: "Québec: Ministère de l'Environnement et de la Lutte contre les changements climatiques",
	Mode:        core.OneByOne,
	DefaultOptions: func() interface{} {
		return &optionsQuebec{}
	},
	Factory: func(name string, options interface{}) (core.Script, error) {
		if _, ok := options.(*optionsQuebec); ok {
			return &scriptQuebec{
				name:              name,
				codesURL:          "https://www.cehq.gouv.qc.ca/suivihydro/default.asp#region",
				referenceListURL:  "https://wateroffice.ec.gc.ca/station_metadata/reference_index_download_e.html",
				stationURLFormat:  "http://www.cehq.gouv.qc.ca/suivihydro/graphique.asp?NoStation=%s",
				readingsURLFormat: "http://www.cehq.gouv.qc.ca/suivihydro/fichier_donnees.asp?NoStation=%s",
			}, nil
		}
		return nil, fmt.Errorf("failed to cast %T", optionsQuebec{})
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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