Documentation
¶
Index ¶
- func CreateRunProjectCmd(ctx context.Context, log logger.Logger, theproject project.ProjectContext, ...) (*exec.Cmd, error)
- func FindAvailablePort(p project.ProjectContext) (int, error)
- func KillProjectServer(logger logger.Logger, projectServerCmd *exec.Cmd, pid int)
- type Agent
- type AgentsControlResponse
- type ConnectionResponse
- type DevModeConfig
- type DevModeUI
- func (d *DevModeUI) AddLog(log string, args ...any)
- func (d *DevModeUI) Close(abort bool)
- func (d *DevModeUI) Done() <-chan struct{}
- func (d *DevModeUI) SetPublicURL(url string)
- func (d *DevModeUI) SetSpinner(spinning bool)
- func (d *DevModeUI) SetStatusMessage(msg string, args ...any)
- func (d *DevModeUI) ShowSpinner(msg string, fn func())
- func (d *DevModeUI) Start()
- type FileWatcher
- type PendingLogger
- func (l *PendingLogger) Debug(msg string, args ...interface{})
- func (l *PendingLogger) Error(msg string, args ...interface{})
- func (l *PendingLogger) Fatal(msg string, args ...interface{})
- func (l *PendingLogger) Info(msg string, args ...interface{})
- func (l *PendingLogger) Stack(next logger.Logger) logger.Logger
- func (l *PendingLogger) Trace(msg string, args ...interface{})
- func (l *PendingLogger) Warn(msg string, args ...interface{})
- func (l *PendingLogger) With(metadata map[string]interface{}) logger.Logger
- func (l *PendingLogger) WithContext(ctx context.Context) logger.Logger
- func (l *PendingLogger) WithPrefix(prefix string) logger.Logger
- type Server
- type ServerArgs
- type TuiLogger
- func (l *TuiLogger) Debug(msg string, args ...interface{})
- func (l *TuiLogger) Error(msg string, args ...interface{})
- func (l *TuiLogger) Fatal(msg string, args ...interface{})
- func (l *TuiLogger) Info(msg string, args ...interface{})
- func (l *TuiLogger) Stack(next logger.Logger) logger.Logger
- func (l *TuiLogger) Trace(msg string, args ...interface{})
- func (l *TuiLogger) Warn(msg string, args ...interface{})
- func (l *TuiLogger) With(metadata map[string]interface{}) logger.Logger
- func (l *TuiLogger) WithContext(ctx context.Context) logger.Logger
- func (l *TuiLogger) WithPrefix(prefix string) logger.Logger
- func (l *TuiLogger) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRunProjectCmd ¶
func FindAvailablePort ¶ added in v0.0.74
func FindAvailablePort(p project.ProjectContext) (int, error)
Types ¶
type AgentsControlResponse ¶ added in v0.0.122
type AgentsControlResponse struct {
ProjectID string `json:"projectId"`
ProjectName string `json:"projectName"`
Agents []project.AgentConfig `json:"agents"`
}
type ConnectionResponse ¶ added in v0.0.122
type ConnectionResponse struct {
Success bool `json:"success"`
Error string `json:"message"`
Data struct {
Certificate string `json:"certificate"`
PrivateKey string `json:"private_key"`
Domain string `json:"domain"`
ExpiresAt string `json:"expires_at"`
OtelUrl string `json:"otlp_url"`
OtelBearerToken string `json:"otlp_token"`
} `json:"data"`
}
type DevModeConfig ¶ added in v0.0.122
type DevModeUI ¶ added in v0.0.122
type DevModeUI struct {
// contains filtered or unexported fields
}
func NewDevModeUI ¶ added in v0.0.122
func NewDevModeUI(ctx context.Context, config DevModeConfig) *DevModeUI
func (*DevModeUI) Close ¶ added in v0.0.122
Close the program which will stop the program and wait for it to exit
func (*DevModeUI) Done ¶ added in v0.0.122
func (d *DevModeUI) Done() <-chan struct{}
Done returns a channel that will be closed when the program is done
func (*DevModeUI) SetPublicURL ¶ added in v0.0.122
func (*DevModeUI) SetSpinner ¶ added in v0.0.122
func (*DevModeUI) SetStatusMessage ¶ added in v0.0.122
func (*DevModeUI) ShowSpinner ¶ added in v0.0.122
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
type PendingLogger ¶ added in v0.0.122
type PendingLogger struct {
// contains filtered or unexported fields
}
func NewPendingLogger ¶ added in v0.0.122
func NewPendingLogger(logLevel logger.LogLevel) *PendingLogger
func (*PendingLogger) Debug ¶ added in v0.0.122
func (l *PendingLogger) Debug(msg string, args ...interface{})
Debug level logging
func (*PendingLogger) Error ¶ added in v0.0.122
func (l *PendingLogger) Error(msg string, args ...interface{})
Error level logging
func (*PendingLogger) Fatal ¶ added in v0.0.122
func (l *PendingLogger) Fatal(msg string, args ...interface{})
Fatal level logging and exit with code 1
func (*PendingLogger) Info ¶ added in v0.0.122
func (l *PendingLogger) Info(msg string, args ...interface{})
Info level loggi ng
func (*PendingLogger) Stack ¶ added in v0.0.122
func (l *PendingLogger) Stack(next logger.Logger) logger.Logger
Stack will return a new logger that logs to the given logger as well as the current logger
func (*PendingLogger) Trace ¶ added in v0.0.122
func (l *PendingLogger) Trace(msg string, args ...interface{})
Trace level logging
func (*PendingLogger) Warn ¶ added in v0.0.122
func (l *PendingLogger) Warn(msg string, args ...interface{})
Warning level logging
func (*PendingLogger) With ¶ added in v0.0.122
func (l *PendingLogger) With(metadata map[string]interface{}) logger.Logger
With will return a new logger using metadata as the base context
func (*PendingLogger) WithContext ¶ added in v0.0.122
func (l *PendingLogger) WithContext(ctx context.Context) logger.Logger
WithContext will return a new logger with the given context
func (*PendingLogger) WithPrefix ¶ added in v0.0.122
func (l *PendingLogger) WithPrefix(prefix string) logger.Logger
WithPrefix will return a new logger with a prefix prepended to the message
type Server ¶ added in v0.0.122
type Server struct {
ID string
Project project.ProjectContext
// contains filtered or unexported fields
}
func New ¶ added in v0.0.122
func New(args ServerArgs) (*Server, error)
func (*Server) Close ¶ added in v0.0.122
Close closes the bridge client and cleans up the connection
func (*Server) HealthCheck ¶ added in v0.0.122
type ServerArgs ¶ added in v0.0.122
type TuiLogger ¶ added in v0.0.122
type TuiLogger struct {
// contains filtered or unexported fields
}
func NewTUILogger ¶ added in v0.0.122
func (*TuiLogger) Stack ¶ added in v0.0.122
Stack will return a new logger that logs to the given logger as well as the current logger
func (*TuiLogger) With ¶ added in v0.0.122
With will return a new logger using metadata as the base context
func (*TuiLogger) WithContext ¶ added in v0.0.122
WithContext will return a new logger with the given context
func (*TuiLogger) WithPrefix ¶ added in v0.0.122
WithPrefix will return a new logger with a prefix prepended to the message