js

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainFuncRawBytesTmpl []byte

Functions

func RenderTmpl

func RenderTmpl(tpl string, ctx *Context) ([]byte, error)

RenderTmpl renders the template with the given context

Types

type Context

type Context struct {
	// Name of the servcie
	Name string
	// Host is the hostname listen on or connect to
	Host string
	// Port is the port listen on or connect to
	Port int
}

Context defines context for the template

type JsServerless

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

JsServerless defines golang implementation of Serverless interface.

func (*JsServerless) Build

func (s *JsServerless) Build(clean bool) error

Build compiles the serverless to executable

func (*JsServerless) Executable

func (s *JsServerless) Executable() bool

func (*JsServerless) Init

func (s *JsServerless) Init(opts *serverless.Options) error

Init initializes the serverless

func (*JsServerless) Run

func (s *JsServerless) Run(verbose bool) error

Run compiles and runs the serverless

Jump to

Keyboard shortcuts

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