config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertKey

type CertKey struct {
	Cert string `yaml:"cert" json:"cert"`
	Key  string `yaml:"key" json:"key"`
}

listen related

type Dial added in v1.1.0

type Dial struct {
	Network        string   `yaml:"network" json:"network"`
	Addrs          []string `yaml:"addrs" json:"addrs"`
	AdvertisedAddr string   `yaml:"advertised_addr,omitempty" json:"advertised_addr"`
	TLS            TLS      `yaml:"tls,omitempty" json:"tls"`
}

type Listen

type Listen struct {
	Network        string `yaml:"network" json:"network"`
	Addr           string `yaml:"addr" json:"addr"`
	AdvertisedAddr string `yaml:"advertised_addr,omitempty" json:"advertised_addr"`
	TLS            TLS    `yaml:"tls,omitempty" json:"tls"`
}

type TLS

type TLS struct {
	Enable             bool      `yaml:"enable" json:"enable"`
	MTLS               bool      `yaml:"mtls" json:"mtls"`
	CACerts            []string  `yaml:"ca_certs" json:"ca_certs"`                         // ca certs paths
	Certs              []CertKey `yaml:"certs" json:"certs"`                               // certs paths
	InsecureSkipVerify bool      `yaml:"insecure_skip_verify" json:"insecure_skip_verify"` // for client use
}

Jump to

Keyboard shortcuts

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