httpserver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexData

type IndexData struct {
	OverallStatus
}

type ListenerInfo

type ListenerInfo struct {
	Address string
}

type OverallStatus

type OverallStatus struct {
	TCPListeners []ListenerInfo
	UDPListeners []ListenerInfo
}

type OverallStatusGetter

type OverallStatusGetter interface {
	TCPListeners() []*listener.TCPListener
	UDPListeners() []*listener.UDPListener
}

type Server

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

func NewServer

func NewServer(addr string, statusGetter OverallStatusGetter) *Server

func (*Server) ServeAndListen

func (s *Server) ServeAndListen() error

Jump to

Keyboard shortcuts

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