webs

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DualServer

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

func NewDual

func NewDual() *DualServer

func (*DualServer) Run

func (this *DualServer) Run(addr string, addrTls string, handler http.Handler)

func (*DualServer) Shutdown

func (this *DualServer) Shutdown()

func (*DualServer) WithSecret

func (this *DualServer) WithSecret(certFile, keyFile string) *DualServer

func (*DualServer) WithSecretDir

func (this *DualServer) WithSecretDir(dir string) *DualServer

type Server

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

func New

func New() *Server

func (*Server) IsTls

func (this *Server) IsTls() bool

func (*Server) Run

func (this *Server) Run(addr string, handler http.Handler)

func (*Server) Shutdown

func (this *Server) Shutdown()

func (*Server) WithTls

func (this *Server) WithTls(certFile, keyFile string) *Server

func (*Server) WithTlsDir

func (this *Server) WithTlsDir(dir string) *Server

Jump to

Keyboard shortcuts

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