Documentation
¶
Index ¶
- func GetenvWithDefault(key string, defaultValue string) string
- func InitHandler(sandbox Sandbox, functionVersion string, timeout int64, bs interop.Bootstrap) (time.Time, time.Time)
- func InvokeHandler(w http.ResponseWriter, r *http.Request, sandbox Sandbox, bs interop.Bootstrap)
- func NewSimpleBootstrap(cmd []string, currentWorkingDir string) interop.Bootstrap
- func Run()
- type ErrorType
- type InteropServer
- type ResponseWriterProxy
- type Sandbox
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetenvWithDefault ¶
func InitHandler ¶
func InvokeHandler ¶
func NewSimpleBootstrap ¶
Types ¶
type InteropServer ¶
type InteropServer interface {
Init(i *interop.Init, invokeTimeoutMs int64) error
AwaitInitialized() error
FastInvoke(w http.ResponseWriter, i *interop.Invoke, direct bool) error
Reserve(id string, traceID, lambdaSegmentID string) (*rapidcore.ReserveResponse, error)
Reset(reason string, timeoutMs int64) (*statejson.ResetDescription, error)
AwaitRelease() (*statejson.InternalStateDescription, error)
Shutdown(shutdown *interop.Shutdown) *statejson.InternalStateDescription
InternalState() (*statejson.InternalStateDescription, error)
CurrentToken() *interop.Token
Restore(restore *interop.Restore) error
}
type ResponseWriterProxy ¶
func (*ResponseWriterProxy) Header ¶
func (w *ResponseWriterProxy) Header() http.Header
func (*ResponseWriterProxy) IsError ¶
func (w *ResponseWriterProxy) IsError() bool
func (*ResponseWriterProxy) WriteHeader ¶
func (w *ResponseWriterProxy) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.