std

package
v0.0.0-...-ab47e86 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 24 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSTD

func InitSTD(interpreter *funl.Interpreter) (err error)

InitSTD is used for initializing standard library

func SetSTDFunctions

func SetSTDFunctions(topFrame *funl.Frame, stdModuleName string, stdFuncs []StdFuncInfo, interpreter *funl.Interpreter) (err error)

SetSTDFunctions exposed

Types

type OpaqueByteArray

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

func NewOpaqueByteArray

func NewOpaqueByteArray(data []byte) *OpaqueByteArray

Creates new OpaqueByteArray

func (*OpaqueByteArray) Equals

func (ob *OpaqueByteArray) Equals(with funl.OpaqueAPI) bool

func (*OpaqueByteArray) GetBytes

func (ob *OpaqueByteArray) GetBytes() []byte

GetBytes provides Go API for reading byte slice

func (*OpaqueByteArray) Str

func (ob *OpaqueByteArray) Str() string

func (*OpaqueByteArray) TypeName

func (ob *OpaqueByteArray) TypeName() string

type OpaqueFile

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

func (*OpaqueFile) Equals

func (file *OpaqueFile) Equals(with funl.OpaqueAPI) bool

func (*OpaqueFile) Str

func (file *OpaqueFile) Str() string

func (*OpaqueFile) TypeName

func (file *OpaqueFile) TypeName() string

type OpaqueFileInfo

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

func (*OpaqueFileInfo) Equals

func (fi *OpaqueFileInfo) Equals(with funl.OpaqueAPI) bool

func (*OpaqueFileInfo) Str

func (fi *OpaqueFileInfo) Str() string

func (*OpaqueFileInfo) TypeName

func (fi *OpaqueFileInfo) TypeName() string

type OpaqueHttpMux

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

func (*OpaqueHttpMux) Equals

func (mux *OpaqueHttpMux) Equals(with funl.OpaqueAPI) bool

func (*OpaqueHttpMux) Str

func (mux *OpaqueHttpMux) Str() string

func (*OpaqueHttpMux) TypeName

func (mux *OpaqueHttpMux) TypeName() string

type OpaqueJSONnull

type OpaqueJSONnull struct{}

func (*OpaqueJSONnull) Equals

func (opa *OpaqueJSONnull) Equals(with funl.OpaqueAPI) bool

func (*OpaqueJSONnull) Str

func (opa *OpaqueJSONnull) Str() string

func (*OpaqueJSONnull) TypeName

func (opa *OpaqueJSONnull) TypeName() string

type OpaqueResponseWriter

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

func (*OpaqueResponseWriter) Equals

func (orw *OpaqueResponseWriter) Equals(with funl.OpaqueAPI) bool

func (*OpaqueResponseWriter) Str

func (orw *OpaqueResponseWriter) Str() string

func (*OpaqueResponseWriter) TypeName

func (orw *OpaqueResponseWriter) TypeName() string

type OpaqueVarRef

type OpaqueVarRef struct {
	ValRef *funl.Value
	sync.RWMutex
}

OpaqueVarRef ...

func (*OpaqueVarRef) Equals

func (ref *OpaqueVarRef) Equals(with funl.OpaqueAPI) bool

Equals ...

func (*OpaqueVarRef) Str

func (ref *OpaqueVarRef) Str() string

Str ...

func (*OpaqueVarRef) TypeName

func (ref *OpaqueVarRef) TypeName() string

TypeName ...

type RProxy

type RProxy struct {
	Addr       string
	Client     *http.Client
	DecoderVal funl.Value
	EncoderVal funl.Value
}

RProxy ...

func NewExtProxy

func NewExtProxy(frame *funl.Frame, addr string) *RProxy

NewExtProxy ...

func (*RProxy) Equals

func (proxy *RProxy) Equals(with funl.OpaqueAPI) bool

Equals returns equality

func (*RProxy) MakeRemoteCall

func (proxy *RProxy) MakeRemoteCall(frame *funl.Frame, rprocName string, arsgList funl.Value) (retVal funl.Value)

MakeRemoteCall ...

func (*RProxy) Str

func (proxy *RProxy) Str() string

Str returs value as string

func (*RProxy) TypeName

func (proxy *RProxy) TypeName() string

TypeName gives type name

type RServer

type RServer struct {
	Addr            string
	Server          *http.Server
	Procs           map[string]funl.Value
	ProcsMutex      sync.RWMutex
	DecoderVal      funl.Value
	EncoderVal      funl.Value
	TopFrame        *funl.Frame
	IdleConnsClosed chan struct{}
}

RServer ...

func NewRServer

func NewRServer(frame *funl.Frame, addr string) *RServer

NewRServer ...

func (*RServer) Close

func (server *RServer) Close() error

Close ...

func (*RServer) Equals

func (server *RServer) Equals(with funl.OpaqueAPI) bool

Equals returns equality

func (*RServer) Register

func (server *RServer) Register(name string, procVal funl.Value) error

Register ...

func (*RServer) ServeHTTP

func (server *RServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP ...

func (*RServer) Str

func (server *RServer) Str() string

Str returs value as string

func (*RServer) TypeName

func (server *RServer) TypeName() string

TypeName gives type name

func (*RServer) UnRegister

func (server *RServer) UnRegister(procName string) error

UnRegister ...

func (*RServer) UnRegisterAll

func (server *RServer) UnRegisterAll() error

UnRegisterAll ...

type Reply

type Reply struct {
	ErrorDescr string
	RetValue   string
}

Reply ...

type Request

type Request struct {
	RPName string
	Args   string
}

Request ...

type StdFuncInfo

type StdFuncInfo struct {
	Name       string
	Getter     func(name string) StdFuncType
	IsFunction bool
}

StdFuncInfo exposed

type StdFuncType

type StdFuncType func(frame *funl.Frame, arguments []funl.Value) (retVal funl.Value)

StdFuncType exposed

Jump to

Keyboard shortcuts

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