extension

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 15 Imported by: 17 modules, 25 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMonitor

func CreateMonitor(ext *Extension, c *cobra.Command, remoteServer monitor.MonitorServer) (err error)

func CreateRunner

func CreateRunner(ext *Extension, c *cobra.Command, remoteServer remote.LoaderServer) (err error)

func LoadPProf

func LoadPProf(name string) []byte

func RegisterStopSignal

func RegisterStopSignal(ctx context.Context, callback func(), servers ...StopAble)

Types

type Extension

type Extension struct {
	Port   int
	Socket string
	// contains filtered or unexported fields
}

Extension is the default command option of the extension

func NewExtension

func NewExtension(name, kind string, port int) *Extension

func (*Extension) AddFlags

func (o *Extension) AddFlags(flags *pflag.FlagSet)

func (*Extension) GetFullName

func (o *Extension) GetFullName() string

func (*Extension) GetListenAddress

func (o *Extension) GetListenAddress() (protocol, address string)

type StopAble

type StopAble interface {
	Stop()
}

Jump to

Keyboard shortcuts

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