Documentation
¶
Index ¶
- func CreateRunProjectCmd(ctx context.Context, log logger.Logger, theproject project.ProjectContext, ...) (*exec.Cmd, error)
- func FindAvailablePort(p project.ProjectContext, tryPort int) (int, error)
- func KillProjectServer(logger logger.Logger, projectServerCmd *exec.Cmd, pid int)
- type AgentWelcome
- type AgentsControlResponse
- type ConnectionResponse
- type FileWatcher
- type Server
- func (s *Server) AgentURL(agentId string) string
- func (s *Server) Close() error
- func (s *Server) Connect() error
- func (s *Server) GenerateInfoBox(publicUrl string, appUrl string, devModeUrl string) string
- func (s *Server) HealthCheck(devModeUrl string) error
- func (s *Server) PublicURL(appUrl string) string
- func (s *Server) WebURL(appUrl string) string
- type ServerArgs
- type Welcome
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, tryPort int) (int, error)
Types ¶
type AgentWelcome ¶ added in v0.0.124
type AgentWelcome struct {
project.AgentConfig
Welcome
}
type AgentsControlResponse ¶ added in v0.0.122
type AgentsControlResponse struct {
ProjectID string `json:"projectId"`
ProjectName string `json:"projectName"`
Agents []AgentWelcome `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"`
Hostname string `json:"hostname,omitempty"`
} `json:"data"`
}
type FileWatcher ¶
type FileWatcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
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) GenerateInfoBox ¶ added in v0.0.138
func (*Server) HealthCheck ¶ added in v0.0.122
type ServerArgs ¶ added in v0.0.122
Click to show internal directories.
Click to hide internal directories.