server

package
v0.0.0-...-3ab8c1d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsListen

func MetricsListen(listenAddr string) error

MetricsListen starts the metrics HTTP server

Types

type Config

type Config struct {
	ListenAddr string
	Cert       tls.Certificate
	Upstream   string
	TLSCompat  bool
	Debug      bool
}

type Server

type Server struct {
	Upstream string
	Listener quic.Listener
	Debug    bool
}

Server stores a DoQ server

func New

func New(c Config) (*Server, error)

New constructs a new Server

func (*Server) Listen

func (s *Server) Listen()

Listen starts accepting QUIC connections

Jump to

Keyboard shortcuts

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