https

package
v0.0.0-...-cdf2bcc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DomainData

type DomainData struct {
	Domain string
	Data   []byte
}

type HTTPSServer

type HTTPSServer struct {
	TCPAddr   *net.TCPAddr
	TCPListen *net.TCPListener
	Ckv       *encrypt.KV

	Domain      string
	TLSConfig   *tls.Config
	TLSAddr     *net.TCPAddr
	TLSTimeout  int64
	TLSDeadline int64
	DomainCkv   map[string]*encrypt.KV
	TLSServer   *TLSServer
}

HTTPSServer .

func NewHTTPSServer

func NewHTTPSServer(addr, password string, domain, cert, certKey string, tlsPort, tlsTimeout, tlsDeadline int64, domainPassword []string) (*HTTPSServer, error)

func (*HTTPSServer) ListenAndServe

func (s *HTTPSServer) ListenAndServe() error

func (*HTTPSServer) RunTLSServer

func (s *HTTPSServer) RunTLSServer() error

func (*HTTPSServer) Shutdown

func (s *HTTPSServer) Shutdown()

type TLSServer

type TLSServer struct {
	HTTPSServer *HTTPSServer
	Cache       *cache.Cache
	TCPListen   *net.TCPListener
	Done        chan byte
	DomainData  chan DomainData
	Error       chan error
}

TLSServer .

func NewTLSServer

func NewTLSServer(s *HTTPSServer) (*TLSServer, error)

NewTLSServer .

func (*TLSServer) Accept

func (s *TLSServer) Accept()

Accept consumer.

func (*TLSServer) HandleClient

func (s *TLSServer) HandleClient(c *net.TCPConn) error

HandleClient .

func (*TLSServer) ListenAndServe

func (s *TLSServer) ListenAndServe() error

ListenAndServe .

func (*TLSServer) Shutdown

func (s *TLSServer) Shutdown()

Shutdown .

Jump to

Keyboard shortcuts

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