Documentation ¶
Index ¶
- Constants
- Variables
- func LoadEnvFile(file string) error
- func PrepareFunction(name string, function *resources.AWSServerlessFunction) error
- type Go1xHandler
- func (h *Go1xHandler) Arn() string
- func (h *Go1xHandler) Init(name string, function *resources.AWSServerlessFunction)
- func (h *Go1xHandler) Invoke(payload []byte) ([]byte, error)
- func (h *Go1xHandler) Name() string
- func (h *Go1xHandler) Property(key string) interface{}
- func (h *Go1xHandler) Runtime() string
- func (h *Go1xHandler) Start(envs []string) error
- func (h *Go1xHandler) Stop() error
- type Handler
Constants ¶
View Source
const (
InvokerPropertyPort string = "port"
)
Variables ¶
View Source
var ErrConn = errors.New("Conn Error")
ErrConn defines connection error to lambda
View Source
var ErrExec = errors.New("Exec Error")
ErrExec defines error on execute lambda
View Source
var Functions = make(map[string]Handler)
Functions holds all functions' meta data
Functions ¶
func PrepareFunction ¶
func PrepareFunction(name string, function *resources.AWSServerlessFunction) error
PrepareFunction preload function and make it ready to invoke
Types ¶
type Go1xHandler ¶
type Go1xHandler struct {
// contains filtered or unexported fields
}
func (*Go1xHandler) Arn ¶
func (h *Go1xHandler) Arn() string
func (*Go1xHandler) Init ¶
func (h *Go1xHandler) Init(name string, function *resources.AWSServerlessFunction)
func (*Go1xHandler) Name ¶
func (h *Go1xHandler) Name() string
func (*Go1xHandler) Property ¶
func (h *Go1xHandler) Property(key string) interface{}
func (*Go1xHandler) Runtime ¶
func (h *Go1xHandler) Runtime() string
func (*Go1xHandler) Start ¶
func (h *Go1xHandler) Start(envs []string) error
func (*Go1xHandler) Stop ¶
func (h *Go1xHandler) Stop() error
Click to show internal directories.
Click to hide internal directories.