server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 11 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 {
	StopFn func()
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port uint32, stopFn func()) *Server

func (*Server) Listen

func (s *Server) Listen()

func (*Server) ListenAndServeTLS

func (s *Server) ListenAndServeTLS(certFile, keyFile string)

func (*Server) SetHandler

func (s *Server) SetHandler(handler http.Handler)

func (*Server) SetStopFunction added in v0.7.0

func (s *Server) SetStopFunction(fn func())

Jump to

Keyboard shortcuts

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