js

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 17 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
	// ZipperAddrs is the addresses of the zipper server
	ZipperAddrs []string
	// Client credential
	Credential string
}

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