php

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PHPGoCall

func PHPGoCall(pes *C.php_export, args *C.php_arg) *C.php_arg

func PHPGoExports

func PHPGoExports(name *C.char) *C.php_exports

func Start

func Start(name string, handler http.Handler)

func WebRequestToRequest

func WebRequestToRequest(req *WebRequest) (*http.Request, error)

Types

type CPHPExports

type CPHPExports C.php_exports

type PHPArgDesc

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

type PHPExport

type PHPExport 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 WebFile

type WebFile struct {
	Name     string `json:"name"`
	FullPath string `json:"full_path"`
	Type     string `json:"type"`
	TmpName  string `json:"tmp_name"`
	Error    int    `json:"error"`
	Size     int    `json:"size"`
}

type WebRequest

type WebRequest struct {
	Method  string             `json:"method"`
	Url     string             `json:"url"`
	Headers map[string]string  `json:"headers"`
	Body    string             `json:"body"`
	Files   map[string]WebFile `json:"files"`
	Schema  string             `json:"schema"`
}

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

Jump to

Keyboard shortcuts

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