server

package
v0.0.0-...-1f2d7ac Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleServer

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

SimpleServer is SimpleServerInterface implementation

func NewServer

func NewServer(logger zerolog.Logger) *SimpleServer

NewServer creates SimpleServer

func (*SimpleServer) Serve

func (s *SimpleServer) Serve(port int, content string)

Serve initiates server, block for input on stdin

func (*SimpleServer) ServeHTTP

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

ServeHTTP handler function

type SimpleServerInterface

type SimpleServerInterface interface {
	Serve(port int, content string)
}

SimpleServerInterface abstraction for simplified web server

Jump to

Keyboard shortcuts

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