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: 18

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