nzmbh

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = &core.ScriptDescriptor{
	Name:        "nzmbh",
	Description: "New Zealand: Marlborough District Council",
	Mode:        core.AllAtOnce,
	DefaultOptions: func() interface{} {
		return &optionsNzmbh{}
	},
	Factory: func(name string, options interface{}) (core.Script, error) {
		if _, ok := options.(*optionsNzmbh); ok {
			return &scriptNzmbh{
				name:        name,
				reportURL:   "http://hydro.marlborough.govt.nz/reports/riverreport.json",
				siteListURL: "http://hydro.marlborough.govt.nz/data.hts?service=WFS&request=GetFeature&typename=SiteList",
			}, nil
		}
		return nil, fmt.Errorf("failed to cast %T", optionsNzmbh{})
	},
}

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