pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CGIS

type CGIS []*PHPCGI

func (CGIS) HasIdel

func (p CGIS) HasIdel() bool

func (CGIS) IdelCount

func (p CGIS) IdelCount() int

func (CGIS) Len

func (p CGIS) Len() int

func (CGIS) Less

func (p CGIS) Less(i, j int) bool

func (CGIS) Swap

func (p CGIS) Swap(i, j int)

type Command

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

func NewCommand

func NewCommand(exec string, logger *log.Logger) *Command

func (*Command) Exec

func (c *Command) Exec(workDir string) (*exec.Cmd, error)

func (*Command) GoExec

func (c *Command) GoExec(workDir string)

func (*Command) Pid

func (c *Command) Pid() int

func (*Command) Stop

func (c *Command) Stop() error

type FPM

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

func NewFPM

func NewFPM(startPort, maxProcess int, binPath string) *FPM

func (*FPM) Cgis

func (f *FPM) Cgis() CGIS

func (*FPM) Close

func (f *FPM) Close()

func (*FPM) Prune

func (f *FPM) Prune(left int)

func (*FPM) PruneInterval

func (f *FPM) PruneInterval(interval time.Duration, left int)

func (*FPM) Select

func (f *FPM) Select() *PHPCGI

type PHPCGI

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

func (*PHPCGI) Address

func (p *PHPCGI) Address() string

func (*PHPCGI) Pid

func (p *PHPCGI) Pid() int

func (*PHPCGI) Running

func (p *PHPCGI) Running() bool

func (*PHPCGI) Serve

func (p *PHPCGI) Serve() *PHPCGI

func (*PHPCGI) Served

func (p *PHPCGI) Served()

func (*PHPCGI) Serving

func (p *PHPCGI) Serving() int

func (*PHPCGI) Sort

func (p *PHPCGI) Sort() int

func (*PHPCGI) Stop

func (p *PHPCGI) Stop() *PHPCGI

Jump to

Keyboard shortcuts

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