hostname

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 2

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, error)

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

Directories

Path Synopsis
Package validate provides hostname validation helpers
Package validate provides hostname validation helpers

Jump to

Keyboard shortcuts

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