Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitRxTmpl []byte
View Source
var InitTmpl []byte
View Source
var MainFuncRxTmpl []byte
MainFuncRxTmpl the rxstream serverless of the main function template
View Source
var MainFuncTmpl []byte
MainFuncTmpl the raw bytes serverless of the main function template
View Source
var PartialsTmpl []byte
PartialsTmpl partials template, used for rendering the partials
View Source
var WasmMainFuncTmpl []byte
Functions ¶
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 // use environment variables UseEnv bool }
Context defines context for the template
type GolangServerless ¶
type GolangServerless struct {
// contains filtered or unexported fields
}
GolangServerless defines golang implementation of Serverless interface.
func (*GolangServerless) Build ¶
func (s *GolangServerless) Build(clean bool) error
Build compiles the serverless to executable
func (*GolangServerless) Executable ¶
func (s *GolangServerless) Executable() bool
func (*GolangServerless) Init ¶
func (s *GolangServerless) Init(opts *serverless.Options) error
Init initializes the serverless
func (*GolangServerless) Run ¶
func (s *GolangServerless) Run(verbose bool) error
Run compiles and runs the serverless
Click to show internal directories.
Click to hide internal directories.