phpctx

package
v0.0.0-...-055c8ff Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func GetDynamicProperty

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

func ListenAndServe

func ListenAndServe()

func Shell

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

Types

type PHPContext

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

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{}

type Server

type Server interface {
	ServePHP(ctx PHPContext)
}

Jump to

Keyboard shortcuts

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