hostfunctions

package
v0.0.0-...-7c019d2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HostInformation = ""

Functions

func CouchBaseQuery

func CouchBaseQuery(ctx context.Context, module api.Module, queryOffset, queryByteCount, retBuffPtrPos, retBuffSize uint32)

CouchBaseQuery : The wasm module will call this function like this: `func CouchBaseQuery(query string) (string, error)`

func FunctionName

func FunctionName(ctx context.Context, module api.Module, paramOffset, paramByteCount, retBuffPtrPos, retBuffSize uint32)

FunctionName : The wasm module will call this function like this: `func FunctionName(param string) (string, error)`

func GetEnv

func GetEnv(ctx context.Context, module api.Module, varNameOffset, varNameByteCount, retBuffPtrPos, retBuffSize uint32)

GetEnv : The wasm module will call this function like this: `func GetEnv(param string) (string, error)`

func GetHostInformation

func GetHostInformation(ctx context.Context, module api.Module, retBuffPtrPos, retBuffSize uint32)

GetHostInformation returns information about the host

func Http

func Http(ctx context.Context, module api.Module,
	urlOffset, urlByteCount, methodOffSet, methodByteCount, headersOffSet, headersByteCount, bodyOffSet, bodyByteCount,
	retBuffPtrPos, retBuffSize uint32)

func InitCouchBaseCluster

func InitCouchBaseCluster()

func InitRedisCli

func InitRedisCli()

func LogString

func LogString(ctx context.Context, module api.Module, offset, byteCount uint32)

LogString : print a string to the console

func Ping

func Ping(ctx context.Context, module api.Module, offset, byteCount, retBuffPtrPos, retBuffSize uint32)

string parameter, return string

func ReadFile

func ReadFile(ctx context.Context, module api.Module, fileOffset, fileByteCount, retBuffPtrPos, retBuffSize uint32)

ReadFile : string parameter, return string

func RedisGet

func RedisGet(ctx context.Context, module api.Module, keyOffset, keyByteCount, retBuffPtrPos, retBuffSize uint32)

RedisGet : The wasm module will call this function like this: `func RedisGet(key string) (string, error)`

func RedisSet

func RedisSet(ctx context.Context, module api.Module, keyOffset, keyByteCount, valueOffSet, valueByteCount, retBuffPtrPos, retBuffSize uint32)

RedisSet : The wasm module will call this function like this: `func RedisSet(key string, value) (string, error)`

func WriteFile

func WriteFile(ctx context.Context, module api.Module, filePathOffset, filePathByteCount, contentOffset, contentByteCount, retBuffPtrPos, retBuffSize uint32)

string parameter, return string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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