Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitTestTmpl []byte
View Source
var InitTmpl []byte
View Source
var MainFuncTmpl []byte
View Source
var WasiMainFuncTmpl []byte
Functions ¶
Types ¶
type AppOpts ¶ added in v1.18.5
type Context ¶
type Context struct { // Name of the servcie Name string // ZipperAddr is the address of the zipper server ZipperAddr string // Client credential Credential string // WithInitFunc determines whether to work with init function WithInitFunc bool // WithWantedTarget determines whether to work with SetWantedTarget WithWantedTarget bool // WithDescription determines whether to work with description WithDescription bool // WithInputSchema determines whether to work with input schema WithInputSchema 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
Executable returns true if the serverless is executable
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.