Documentation
¶
Index ¶
- func Add(execute func() error, interrupt func(error))
- func GetAddress() string
- func GetGo2PHPAddress() string
- func Register(receiver interface{}) error
- func Run() error
- func SetAddress(addr string)
- func SetGo2PHPAddress(address string)
- type Class
- type Client
- type Function
- type Handler
- type Middleware
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add an actor (function) to the group. Each actor must be pre-emptable by an interrupt function. That is, if interrupt is invoked, execute should return. Also, it must be safe to call interrupt even after execute has returned.
The first actor (function) to return interrupts all running actors. The error is passed to the interrupt functions, and is returned by Run.
func GetGo2PHPAddress ¶
func GetGo2PHPAddress() string
GetGo2PHPAddress retrieves the go2php server socket address
func SetGo2PHPAddress ¶
func SetGo2PHPAddress(address string)
SetGo2PHPAddress sets the go2php server socket address
Types ¶
type Client ¶
Client represents a client for go2php IPC.
func NewAutoClient ¶
NewAutoClient creates a client connected to predefined connection pool.
type Middleware ¶
func Chain ¶
func Chain(outer Middleware, others ...Middleware) Middleware
func PanicRecover ¶
func PanicRecover() Middleware
Click to show internal directories.
Click to hide internal directories.