Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitFuncTmpl []byte
View Source
var MainFuncRawBytesTmpl []byte
View Source
var MainFuncRxTmpl []byte
Functions ¶
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 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) 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.