server

package
v0.0.0-...-4d64e5c Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(config []ServerConfig) []*dns.Server

Types

type ServerConfig

type ServerConfig struct {
	Ip       string    `json:"ip"`
	Port     int       `json:"port"`
	Protocol string    `json:"protocol"`
	Count    int       `json:"count"`
	Tls      TlsConfig `json:"tls"`
}

type TlsConfig

type TlsConfig struct {
	Enable   bool   `json:"enable"`
	CertPath string `json:"cert_path"`
	KeyPath  string `json:"key_path"`
	CaPath   string `json:"ca_path"`
}

Jump to

Keyboard shortcuts

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