phpctx

package
v0.0.0-...-78e98ac Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoStruct ...
	ErrNoStruct = errors.New("receiver is not a struct")
	// ErrMissingField ...
	ErrMissingField = errors.New("struct is missing field")
	// ErrNotSet ...
	ErrNotSet = errors.New("dynamic value is not set")
)

Functions

func GetDynamicProperty

func GetDynamicProperty(rcvr interface{}, field string) (interface{}, error)

GetDynamicProperty returns a dynamic property

func ListenAndServe

func ListenAndServe()

ListenAndServe (see net/http)

func Shell

func Shell(cmd string) ([]byte, error)

Shell returns a shell output

Types

type PHPContext

type PHPContext struct {
	Echo io.Writer
	// contains filtered or unexported fields
}

PHPContext is a PHPContext

func (PHPContext) GetDynamic

func (ctx PHPContext) GetDynamic(name string) (interface{}, error)

func (PHPContext) SetDynamic

func (ctx PHPContext) SetDynamic(name string, value interface{})

func (PHPContext) Write

func (ctx PHPContext) Write(b []byte) (int, error)

type PHPVar

type PHPVar interface{}

PHPVar is a PHPVar

type Server

type Server interface {
	ServePHP(ctx PHPContext)
}

Server is a server

Jump to

Keyboard shortcuts

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