package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Functions

MustParse parses the given URI template and panics if there is an error.
ReadAll is an analog to ioutil.ReadAll: it reads the entire resource into a single byte slice, returning any error that occurred.
UseClient will change the HTTP client object used by the given resource.

# Constants

DefaultMethod is the default HTTP method used when none is supplied.
FileScheme indicates a file URI according to https://en.wikipedia.org/wiki/File_URI_scheme.
HttpScheme is plain old HTTP.
HttpsScheme is secure HTTP.
NoScheme indicates the value of a URI without a scheme prefix, e.g.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Data is an in-memory resource.
Factory provides a common way to configure all types of resources supported by this package.
File is a Loader which obtains resources from the filesystem.
HTTP is a Loader which obtains resources via HTTP.
Template is an Expander implementation which uses a uritemplates.UriTemplate to generate URIs.

# Interfaces

Expander is a strategy for expanding URI templates into resource Loaders.
Loader represents a type that can load data, potentially from outside the running process.