host

package
v0.10.2-0...-4baa321 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: GPL-3.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 Config

type Config struct {
	Name        string
	Certificate tls.Certificate
}

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML satisfies Unmarshaler interface.

type Hosts

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

func New

func New(hostsConfig []Config) (*Hosts, error)

func (*Hosts) Certificates

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

func (*Hosts) DefaultHostName

func (h *Hosts) DefaultHostName() string

func (*Hosts) HostNames

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

func (*Hosts) IsLocalHost

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

type TLSConfig

type TLSConfig struct {
	CertFile       string `yaml:"cert_path"`
	PrivateKeyFile string `yaml:"privkey_path"`
}

Jump to

Keyboard shortcuts

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