httpserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package httpserver implements the core HTTP server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerConfig

type HTTPServerConfig struct {
	ListenAddr   string
	MetricsAddr  string
	AdminAddr    string
	InternalAddr string
	EnablePprof  bool
	Log          *httplog.Logger

	DrainDuration            time.Duration
	GracefulShutdownDuration time.Duration
	ReadTimeout              time.Duration
	WriteTimeout             time.Duration
}

type Server

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

func NewHTTPServer

func NewHTTPServer(cfg *HTTPServerConfig, appHandler *ports.BuilderHubHandler, adminHandler *ports.AdminHandler) (srv *Server, err error)

func (*Server) GetAdminRouter added in v0.2.0

func (srv *Server) GetAdminRouter() http.Handler

func (*Server) GetInternalRouter added in v0.2.0

func (srv *Server) GetInternalRouter() http.Handler

func (*Server) GetRouter added in v0.2.0

func (srv *Server) GetRouter() http.Handler

func (*Server) LoadMockResponses

func (srv *Server) LoadMockResponses() (err error)

func (*Server) RunInBackground

func (srv *Server) RunInBackground()

func (*Server) Shutdown

func (srv *Server) Shutdown()

Jump to

Keyboard shortcuts

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