dev

package
v0.0.179 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRunProjectCmd

func CreateRunProjectCmd(ctx context.Context, log logger.Logger, theproject project.ProjectContext, server *Server, dir string, orgId string, port int, stdout io.Writer, stderr io.Writer) (*exec.Cmd, error)

func FindAvailableOpenPort added in v0.0.173

func FindAvailableOpenPort() (int, error)

func FindAvailablePort added in v0.0.74

func FindAvailablePort(p project.ProjectContext, tryPort int) (int, error)

func KillProjectServer added in v0.0.72

func KillProjectServer(logger logger.Logger, projectServerCmd *exec.Cmd, pid int)

Types

type Endpoint added in v0.0.173

type Endpoint struct {
	ID       string `json:"id"`
	Hostname string `json:"hostname"`
}

func GetDevModeEndpoint added in v0.0.173

func GetDevModeEndpoint(ctx context.Context, logger logger.Logger, baseUrl string, token string, projectId string, hostname string) (*Endpoint, error)

type FileWatcher

type FileWatcher struct {
	// contains filtered or unexported fields
}

func NewWatcher

func NewWatcher(logger logger.Logger, dir string, rules *ignore.Rules, callback func(string)) (*FileWatcher, error)

func (*FileWatcher) Close

func (fw *FileWatcher) Close(logger logger.Logger) error

type Response added in v0.0.173

type Response[T any] struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Data    T      `json:"data"`
}

type Server added in v0.0.122

type Server struct {
	// contains filtered or unexported fields
}

func New added in v0.0.122

func New(args ServerArgs) (*Server, error)

func (*Server) AgentURL added in v0.0.122

func (s *Server) AgentURL(agentId string) string

func (*Server) Close added in v0.0.122

func (s *Server) Close() error

Close closes the bridge client and cleans up the connection

func (*Server) Connect added in v0.0.122

func (s *Server) Connect() error

func (*Server) GenerateInfoBox added in v0.0.138

func (s *Server) GenerateInfoBox(publicUrl string, appUrl string, devModeUrl string) string

func (*Server) HealthCheck added in v0.0.122

func (s *Server) HealthCheck(devModeUrl string) error

func (*Server) PublicURL added in v0.0.122

func (s *Server) PublicURL(appUrl string) string

func (*Server) TelemetryAPIKey added in v0.0.173

func (s *Server) TelemetryAPIKey() string

func (*Server) TelemetryURL added in v0.0.173

func (s *Server) TelemetryURL() string

func (*Server) WebURL added in v0.0.122

func (s *Server) WebURL(appUrl string) string

type ServerArgs added in v0.0.122

type ServerArgs struct {
	APIURL   string
	APIKey   string
	Hostname string
	*gravity.Config
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL