webserver

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package webserver implements the logic for the webserver

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig added in v0.5.0

type AuthConfig struct {
	Username string
	Password string
}

type WebServer

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

func NewWebServer

func NewWebServer(ctx context.Context,
	address string,
	port uint,
	serveMetrics bool,
	authentication *AuthConfig,
) *WebServer

func (*WebServer) Serve

func (s *WebServer) Serve()

Directories

Path Synopsis
Package endpoint implements the logic behind each endpoint of the webserver
Package endpoint implements the logic behind each endpoint of the webserver

Jump to

Keyboard shortcuts

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