http_server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPServerAddrEnv     = "HTTP_SERVER_ADDR"
	DefaultHTTPServerAddr = ":8080"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerConfig

type HTTPServerConfig struct {
	HTTPServerAddr string
	Router         *gin.Engine
}

func InitializeHTTPServerConfig

func InitializeHTTPServerConfig(router *gin.Engine) *HTTPServerConfig

type Server

type Server interface {
	ListenAndServe() (err error)
}

func InitializeHTTPServer

func InitializeHTTPServer(cfg *HTTPServerConfig) (Server, error)

Jump to

Keyboard shortcuts

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