Documentation
¶
Index ¶
- Variables
- type Address
- type App
- func (a *App) Done() <-chan struct{}
- func (a *App) Err() model.AppError
- func (a *App) HandleHealthCheck() interop.HealthCheckResponse
- func (a *App) Init(ctx context.Context, init *internalModel.InitRequestMessage, ...) model.AppError
- func (a *App) Invoke(ctx context.Context, invokeMsg interop.InvokeRequest, ...) (err model.AppError, wasResponseSent bool)
- func (a *App) ReserveIdleRuntime(ctx context.Context, invokeID interop.InvokeID, timeout time.Duration) (interop.ReserveIdleRuntimeResponse, model.AppError)
- func (a *App) RuntimeAPIAddrPort() netip.AddrPort
- func (a *App) Shutdown(shutdownReason model.AppError)
- func (a *App) StartProcessTerminationMonitor()
- type MockAddress
- type Server
- type TCPAddress
- type UnixAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotInitialized = errors.New("sandbox is not initialized") ErrorEnvironmentUnhealthy = errors.New("environment is unhealthy") )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func StartApp ¶
func StartApp(deps rapid.Dependencies, telemetryFDSocketPath, metadataToken string, raptorLogger raptorLogger) (*App, error)
func (*App) HandleHealthCheck ¶
func (a *App) HandleHealthCheck() interop.HealthCheckResponse
func (*App) Init ¶
func (a *App) Init(ctx context.Context, init *internalModel.InitRequestMessage, initMetrics interop.InitMetrics) model.AppError
func (*App) Invoke ¶
func (a *App) Invoke(ctx context.Context, invokeMsg interop.InvokeRequest, metrics interop.InvokeMetrics) (err model.AppError, wasResponseSent bool)
func (*App) ReserveIdleRuntime ¶
func (*App) RuntimeAPIAddrPort ¶
func (*App) StartProcessTerminationMonitor ¶
func (a *App) StartProcessTerminationMonitor()
type MockAddress ¶
func NewMockAddress ¶
func NewMockAddress(t interface {
mock.TestingT
Cleanup(func())
}) *MockAddress
func (*MockAddress) Protocol ¶
func (_m *MockAddress) Protocol() string
func (*MockAddress) String ¶
func (_m *MockAddress) String() string
func (*MockAddress) UpdateFromListener ¶
func (_m *MockAddress) UpdateFromListener(listener net.Listener)
type Server ¶
type Server struct {
Addr Address
// contains filtered or unexported fields
}
func StartServer ¶
func (*Server) AttachShutdownSignalHandler ¶
type TCPAddress ¶
func (*TCPAddress) Protocol ¶
func (t *TCPAddress) Protocol() string
func (*TCPAddress) String ¶
func (t *TCPAddress) String() string
func (*TCPAddress) UpdateFromListener ¶
func (t *TCPAddress) UpdateFromListener(listener net.Listener)
type UnixAddress ¶
type UnixAddress struct {
Path string
}
func (*UnixAddress) Protocol ¶
func (u *UnixAddress) Protocol() string
func (*UnixAddress) String ¶
func (u *UnixAddress) String() string
func (*UnixAddress) UpdateFromListener ¶
func (u *UnixAddress) UpdateFromListener(listener net.Listener)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.