upstream

package
v0.0.0-...-dfa6bd9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListenAddress = "localhost:8888"
)

Variables

This section is empty.

Functions

func AddStartOptionParser

func AddStartOptionParser(name string, parser StartOptionParser)

Types

type Attach

type Attach struct {
	Pid int
}

func (*Attach) Argv

func (d *Attach) Argv(listenAddress string) []string

type Connect

type Connect struct {
	Host string
	Port int
}

Connect to the running dlv instance, do not actually start a new one

func (*Connect) Address

func (c *Connect) Address() string

type Debug

type Debug struct {
	PackagePath string
}

func (*Debug) Argv

func (d *Debug) Argv(listenAddress string) []string

type Exec

type Exec struct {
	ExecutablePath string
	CmdLineArgs    []string
}

func (*Exec) Argv

func (d *Exec) Argv(listenAddress string) []string

type StartDlvProcess

type StartDlvProcess interface {
	Argv(listenAddress string) []string
	// contains filtered or unexported methods
}

Run the dlv as a separate process

type StartOption

type StartOption interface {
	// contains filtered or unexported methods
}

func NewStartOption

func NewStartOption(argv []string) (StartOption, error)

type StartOptionName

type StartOptionName string

type StartOptionParser

type StartOptionParser func(argv []string) (StartOption, error)

type Upstream

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

func New

func New(ctx context.Context, command StartDlvProcess) (*Upstream, error)

func (*Upstream) Error

func (u *Upstream) Error() <-chan error

func (*Upstream) Stop

func (u *Upstream) Stop()

Jump to

Keyboard shortcuts

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