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.
Click to show internal directories.
Click to hide internal directories.