Documentation
¶
Index ¶
- Constants
- func Bootstrap(out BootstrapIO, dir string) error
- func DefaultBaseURL(port int) string
- func DevIntegrationDir() string
- func EntryScript(dir string) string
- func InstallDir() (string, error)
- func InstallDirReady(dir string) bool
- func InstallRuntime(out BootstrapIO, dir string) error
- func InstallRuntimeClean(out BootstrapIO, dir string) error
- func NodeModulesDir(dir string) string
- func ResolveInstallDir() (string, error)
- type BootstrapIO
- type Manager
- type ProxyStatus
Constants ¶
View Source
const ( DefaultPort = 8766 IntegrationName = "cursor" )
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(out BootstrapIO, dir string) error
func DefaultBaseURL ¶
func DevIntegrationDir ¶
func DevIntegrationDir() string
func EntryScript ¶
func InstallDir ¶
func InstallDirReady ¶
func InstallRuntime ¶
func InstallRuntime(out BootstrapIO, dir string) error
InstallRuntime copies the embedded bundle into dir and ensures npm prod deps for the sidecar.
func InstallRuntimeClean ¶
func InstallRuntimeClean(out BootstrapIO, dir string) error
InstallRuntimeClean removes any previous runtime under dir, redeploys the embedded bundle, and reinstalls prod npm deps.
func NodeModulesDir ¶
func ResolveInstallDir ¶
Types ¶
type BootstrapIO ¶
type BootstrapIO interface {
Print(msg string)
}
type Manager ¶
type Manager struct {
Port int
}
func DefaultManager ¶
func DefaultManager() *Manager
func (*Manager) ProxyStatus ¶
func (m *Manager) ProxyStatus(ctx context.Context) ProxyStatus
Click to show internal directories.
Click to hide internal directories.