host

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hosts added in v0.50.0

type Hosts struct {
	// contains filtered or unexported fields
}

Hosts type represents all local domains set.

func New added in v0.50.0

func New() *Hosts

New creates and returns an empty Hosts instance.

func (*Hosts) Certificates added in v0.50.0

func (hs *Hosts) Certificates() []tls.Certificate

Certificates returns all registered domain certificates.

func (*Hosts) DefaultHostName added in v0.50.0

func (hs *Hosts) DefaultHostName() string

DefaultHostName returns default host name value.

func (*Hosts) HostNames added in v0.50.0

func (hs *Hosts) HostNames() []string

HostNames returns the list of all registered local hosts.

func (*Hosts) IsLocalHost added in v0.50.0

func (hs *Hosts) IsLocalHost(h string) bool

IsLocalHost tells whether or not d value corresponds to local host.

func (*Hosts) RegisterDefaultHost added in v0.50.0

func (hs *Hosts) RegisterDefaultHost(h string, cer tls.Certificate)

RegisterDefaultHost registers default host value along with its certificate.

func (*Hosts) RegisterHost added in v0.50.0

func (hs *Hosts) RegisterHost(h string, cer tls.Certificate)

RegisterHost registers a host value along with its certificate.

Jump to

Keyboard shortcuts

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