switzerland

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = &core.ScriptDescriptor{
	Name:        "switzerland",
	Description: "Switzerland: Federal Office for the Environment",
	Mode:        core.AllAtOnce,
	DefaultOptions: func() interface{} {
		return &optionsSwitzerland{}
	},
	Factory: func(name string, options interface{}) (core.Script, error) {
		if opts, ok := options.(*optionsSwitzerland); ok {
			return &scriptSwitzerland{
				name:             name,
				xmlURL:           "https://www.hydrodata.ch/data/plc/xml/hydroweb.xml",
				gaugePageURLBase: "https://www.hydrodaten.admin.ch/en/",
				options:          *opts,
			}, nil
		}
		return nil, fmt.Errorf("failed to cast %T", optionsSwitzerland{})
	},
}

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