httpserverfactory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerFactory

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

func New

func New(osLayer OSLayer) *HTTPServerFactory

func (*HTTPServerFactory) NewServerOverUDS

func (f *HTTPServerFactory) NewServerOverUDS(handlers map[string]http.HandlerFunc) (HttpServer, error)

type HttpServer

type HttpServer interface {
	Serve(socketPath string) error
	Shutdown(ctx context.Context) error
}

type OSLayer

type OSLayer interface {
	RemoveAll(name string) error
}

Jump to

Keyboard shortcuts

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