nativeapp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package nativeapp reproduces the legacy DIA component tool's golang app launcher (app-launchers/golang.bash, no docker image): it starts the project binaries built into $GOPATH/bin as detached native processes, each on an incrementing port with the emulator host env vars, and stops them by name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

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

Launcher starts and stops the native app binaries.

func New

func New(logger *zap.Logger, buildConfigPath string) (*Launcher, error)

New builds a Launcher resolving $GOPATH/bin and the working directory.

func (*Launcher) Start

func (l *Launcher) Start(ctx context.Context) error

Start launches every configured binary as a detached process.

func (*Launcher) Stop

func (l *Launcher) Stop(ctx context.Context) error

Stop terminates every configured binary by name.

Jump to

Keyboard shortcuts

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