server

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server type

func New

func New(cfg *config.Config) *Server

New return new server

func (*Server) ListenAndServeDNS

func (s *Server) ListenAndServeDNS(ctx context.Context, network string)

ListenAndServeDNS Starts a server on address and network specified Invoke handler for incoming queries.

func (*Server) ListenAndServeDNSTLS

func (s *Server) ListenAndServeDNSTLS(ctx context.Context)

ListenAndServeDNSTLS acts like http.ListenAndServeTLS

func (*Server) ListenAndServeH3 added in v1.3.2

func (s *Server) ListenAndServeH3(ctx context.Context)

ListenAndServeH3

func (*Server) ListenAndServeHTTPTLS

func (s *Server) ListenAndServeHTTPTLS(ctx context.Context)

ListenAndServeHTTPTLS acts like http.ListenAndServeTLS

func (*Server) ListenAndServeQUIC added in v1.3.2

func (s *Server) ListenAndServeQUIC(ctx context.Context)

ListenAndServeQUIC

func (*Server) Run

func (s *Server) Run(ctx context.Context)

Run listen the services

func (*Server) ServeDNS

func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

ServeDNS implements the Handle interface.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Stopped added in v1.3.2

func (s *Server) Stopped() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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