fcgi

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fcgi provides FastCGI protocol support for the Kahi supervisor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgramConfig

type ProgramConfig struct {
	SocketPath  string      // Unix socket path or TCP address
	Protocol    Protocol    // "tcp" or "unix"
	SocketOwner string      // chown target (user:group)
	SocketMode  os.FileMode // chmod for socket
}

ProgramConfig holds FastCGI-specific configuration for a program.

type Protocol

type Protocol string

Protocol specifies the FastCGI socket protocol.

const (
	ProtocolTCP  Protocol = "tcp"
	ProtocolUnix Protocol = "unix"
)

type Socket

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

Socket manages a FastCGI listener socket.

func NewSocket

func NewSocket(cfg ProgramConfig) *Socket

NewSocket creates a FastCGI socket from config.

func (*Socket) Addr

func (s *Socket) Addr() string

Addr returns the listener address, or empty if not open.

func (*Socket) Close

func (s *Socket) Close() error

Close cleans up the socket.

func (*Socket) Open

func (s *Socket) Open() (*os.File, error)

Open creates and binds the socket. The resulting file descriptor should be passed to the child process via ExtraFiles.

Jump to

Keyboard shortcuts

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