Versions in this module Expand all Collapse all v1 v1.9.4 Apr 1, 2024 v1.9.3 Mar 22, 2024 v1.9.2 Oct 6, 2023 v1.9.1 Oct 2, 2023 v1.9.0 Oct 2, 2023 v1.8.4 Sep 29, 2023 v1.8.3 Sep 27, 2023 v1.8.2 Sep 26, 2023 v1.8.1 Jun 9, 2023 v1.8.0 May 17, 2023 v1.7.0 May 8, 2023 v1.6.0 Apr 25, 2023 v1.5.0 Apr 25, 2023 v1.4.0 Apr 25, 2023 v0 v0.1.8 May 17, 2023 v0.1.7 May 17, 2023 v0.1.5 Apr 25, 2023 Changes in this version + func Log(stream io.WriteCloser, msg string) + type Config struct + AccessSecret *scy.Resource + AccountID int + Debug *Debug + FuncLocation string + Functions []*FunctionConfig + LogLocation string + Port int + Secret *scy.Resource + func NewConfig(port int, fnLocation, logLocation string, opts ...ConfigOption) *Config + func (c *Config) AccessCred(ctx context.Context) (*cred.Aws, error) + func (c *Config) AddEnv(ctx context.Context, env *[]string) error + func (c *Config) BaseHandlerLocation() string + func (c *Config) BaseLogLocation() string + func (c *Config) Cred(ctx context.Context) (*cred.Aws, error) + func (c *Config) Init() + func (c *Config) Lookup(fnName string) *FunctionConfig + type ConfigOption func(c *Config) + func WithFunction(config *FunctionConfig) ConfigOption + type Context struct + AccountID string + ClientContext string + CognitoIdentity string + FnName string + InitEnd time.Time + InvokeError string + InvokePayload []byte + InvokeResponse []byte + InvokeWait time.Time + InvokedFunctionArn string + LogType string + MaxMem uint64 + MemSize string + Region string + RequestID string + Start time.Time + Timeout string + TimeoutDuration time.Duration + Version string + XAmznTraceID string + func (c *Context) Deadline() time.Time + func (c *Context) HasExpired() bool + func (c *Context) Message(msg string) string + func (c *Context) ParseTimeout() + type Debug struct + Delve Delve + Enabled bool + type Delve struct + API string + Location string + Port int + type Function struct + Cmd *exec.Cmd + Config *FunctionConfig + LogStream io.WriteCloser + Port int + func NewFunction(config *FunctionConfig) (*Function, error) + func (f *Function) Call(ctx context.Context, request *messages.InvokeRequest) (*messages.InvokeResponse, error) + func (f *Function) Client() (*rpc.Client, error) + func (f *Function) Start(ctx context.Context, port int) error + func (f *Function) Stop() error + type FunctionConfig struct + CodeURI string + func NewFunctionConfig(name, handler string, opts ...FunctionConfigOption) *FunctionConfig + func (c *FunctionConfig) AddEnv(ctx context.Context, env *[]string, port int, xAmznTraceID string) error + func (c *FunctionConfig) Init(cfg *Config) + func (c *FunctionConfig) MergeFrom(config *lambda.FunctionConfiguration) + type FunctionConfigOption func(c *FunctionConfig) + type Router struct + func (r *Router) Configure(service *Service) *http.ServeMux + type Service struct + Config *Config + func New(config *Config) *Service + func (s *Service) Function(functionName string) (*Function, error) + func (s *Service) Handle(writer http.ResponseWriter, request *http.Request) + func (s *Service) Init() + func (s *Service) Shutdown() + func (s *Service) Start() + type URI string + func (u URI) Info() (string, string)