goxn

package module
v0.0.0-...-51668bc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 108 Imported by: 0

README

goxn

Embeddable version of Gox language. A network-server/micro-service mode is available as well.

Usage

goxn -port=:80 -dir=. -webDir=.

use -dir= to specify the main micro-service path, -webDir= to specify the static web/file server path.

Example

goxn -port=:8080 -dir=c:\scripts -webDir=d:\web

A web/application server will start and listen on port 8080. Any scripts file(.gox) written by Gox language will be executed(and is expected to return proper http response). For example, if there is a file named "test.gox" in c:\scripts, the URL to access the service is http://127.0.0.1:8080/wms/test .

And all the files in d:\web, will be served as static web file, i.e. browse to http://127.0.0.1:8080/index.html to access index.html in d:\web.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionG = versionG

Functions

func InitVM

func InitVM()

func NewFuncB

func NewFuncB(funcA interface{}) func()

func NewFuncInterfaceInterface

func NewFuncInterfaceInterface(funcA interface{}) func(interface{}) interface{}

func NewFuncInterfaceInterfaceErrorB

func NewFuncInterfaceInterfaceErrorB(funcA interface{}) func(interface{}) (interface{}, error)

func NewFuncInterfacesInterface

func NewFuncInterfacesInterface(funcA interface{}) func(...interface{}) interface{}

func NewFuncStringStringB

func NewFuncStringStringB(funcA interface{}) func(string) string

func NewFuncStringStringErrorB

func NewFuncStringStringErrorB(funcA interface{}) func(string) (string, error)

func RunScript

func RunScript(codeA, inputA string, argsA []string, parametersA map[string]string, optionsA ...string) (string, error)

func RunScriptOnHttp

func RunScriptOnHttp(codeA string, resA http.ResponseWriter, reqA *http.Request, inputA string, argsA []string, parametersA map[string]string, optionsA ...string) (string, error)

func StartServer

func StartServer(portA string, codeA string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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