Documentation ¶
Index ¶
- func PHPGoCall(pes *C.php_export, args *C.php_arg) *C.php_arg
- func PHPGoExports(name *C.char) *C.php_exports
- func Start(name string, handler http.Handler)
- func WebRequestToRequest(req *WebRequest) (*http.Request, error)
- type CKind
- type CPHPExports
- type PHPArgDesc
- type PHPExport
- type PHPExports
- type WebFile
- type WebRequest
- type WebResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PHPGoExports ¶
func PHPGoExports(name *C.char) *C.php_exports
func WebRequestToRequest ¶
func WebRequestToRequest(req *WebRequest) (*http.Request, error)
Types ¶
type CKind ¶
const ( Bool CKind = C.PHPGO_KIND_BOOL Int CKind = C.PHPGO_KIND_INT Int8 CKind = C.PHPGO_KIND_INT8 Int16 CKind = C.PHPGO_KIND_INT16 Int32 CKind = C.PHPGO_KIND_INT32 Int64 CKind = C.PHPGO_KIND_INT64 Uint CKind = C.PHPGO_KIND_UINT Uint8 CKind = C.PHPGO_KIND_UINT8 Uint16 CKind = C.PHPGO_KIND_UINT16 Uint32 CKind = C.PHPGO_KIND_UINT32 Uint64 CKind = C.PHPGO_KIND_UINT64 Float32 CKind = C.PHPGO_KIND_FLOAT32 Float64 CKind = C.PHPGO_KIND_FLOAT64 String CKind = C.PHPGO_KIND_STRING )
type CPHPExports ¶
type CPHPExports C.php_exports
type PHPArgDesc ¶
type PHPArgDesc struct {
// contains filtered or unexported fields
}
type PHPExports ¶
type PHPExports struct {
// contains filtered or unexported fields
}
func Export ¶
func Export(name string, exports map[string]interface{}) *PHPExports
type WebRequest ¶
type WebResponse ¶
type WebResponse struct { Headers map[string]string `json:"headers"` Body string `json:"body"` Status int `json:"status"` }
func ResponseToWebResponse ¶
func ResponseToWebResponse(res *http.Response) *WebResponse
func (*WebResponse) String ¶
func (r *WebResponse) String() string
Click to show internal directories.
Click to hide internal directories.