nodejs

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package nodejs provides a ts serverless runtime

Index

Constants

This section is empty.

Variables

View Source
var WrapperTSTmpl string

Functions

This section is empty.

Types

type NodejsWrapper

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

NodejsWrapper is the nodejs implementation of wrapper.

func NewWrapper

func NewWrapper(functionName, entryTSFile string) (*NodejsWrapper, error)

NewWrapper returns a new NodejsWrapper

func (*NodejsWrapper) Build

func (w *NodejsWrapper) Build(env []string) error

Build defines how to build the serverless function.

func (*NodejsWrapper) Run

func (w *NodejsWrapper) Run(env []string) error

Run runs the serverless function

func (*NodejsWrapper) WorkDir

func (w *NodejsWrapper) WorkDir() string

WorkDir returns the working directory of the serverless function to build and run.

Jump to

Keyboard shortcuts

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