nzstl

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = &core.ScriptDescriptor{
	Name:        "nzstl",
	Description: "New Zealand: Environment Southland",
	Mode:        core.AllAtOnce,
	DefaultOptions: func() interface{} {
		return &optionsNzstl{}
	},
	Factory: func(name string, options interface{}) (core.Script, error) {
		if _, ok := options.(*optionsNzstl); ok {
			return &scriptNzstl{
				name: name,
				url:  "http://envdata.es.govt.nz/services/data.ashx?f=water-level.xml",
			}, nil
		}
		return nil, fmt.Errorf("failed to cast %T", optionsNzstl{})
	},
}

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