Help us shape the future of Go! Take the 2026 Go Developer Survey

fcgi

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package fcgi implements a FastCGI server that serves HTTP requests over the FastCGI protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFCGIServer

func NewFCGIServer(handler http.Handler, cfg *FCGI, log *slog.Logger, errLog *log.Logger) servers.InternalServer[any]

Types

type FCGI

type FCGI struct {
	// Address and port to handle as http server.
	Address string `mapstructure:"address"`
	// UnixSocket sets attributes on the FastCGI UNIX socket only.
	UnixSocket *tcplisten.UnixSocketOptions `mapstructure:"unix_socket"`
}

FCGI for FastCGI server.

func (*FCGI) Valid

func (c *FCGI) Valid() error

Valid validates the FastCGI socket options.

type Server

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

func (*Server) Serve

func (s *Server) Serve(mdwr map[string]api.Middleware, order []string) error

func (*Server) Server

func (s *Server) Server() any

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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