hostname

package
v0.0.0-...-1d9613f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderCatalog = make(map[string]Provider)

ProviderCatalog holds all the various kinds of hostname providers

Functions

func RegisterHostnameProvider

func RegisterHostnameProvider(name string, p Provider)

RegisterHostnameProvider registers a hostname provider as part of the catalog

Types

type Provider

type Provider func(string) (string, error)

Provider is a generic function to grab the hostname and return it

Jump to

Keyboard shortcuts

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