webserver

package
v0.0.0-...-b35749e Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	Host                string `yaml:"host"`
	Port                uint16 `yaml:"port"`
	DefaultResponseCode uint16 `yaml:"default-response-code"`
}

type WebServer

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

func (*WebServer) AddEndpoint

func (s *WebServer) AddEndpoint(url string, handler http.HandlerFunc)

func (*WebServer) Start

func (s *WebServer) Start()

func (*WebServer) Stop

func (s *WebServer) Stop()

func (*WebServer) UnmarshalYAML

func (ctx *WebServer) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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