httpserver

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

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

Go to latest
Published: Sep 22, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(listenAddress string) *http.Server

Config Configure HTTP server.

Types

type ServerConfig

type ServerConfig struct {
	HTTPServer *http.Server
	URLLength  uint8
	DB         *redis.Client
	Static     embed.FS
	Templates  embed.FS
}

func (ServerConfig) Server

func (config ServerConfig) Server()

Server Start HTTP server.

Jump to

Keyboard shortcuts

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