standalone

package
v0.159.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPIDIsRunning added in v0.156.0

func CheckPIDIsRunning(pid int) bool

CheckPIDIsRunning returns true if there's a process with the specified PID

func CleanupStandaloneAddressFile added in v0.156.0

func CleanupStandaloneAddressFile(info Args) error

CleanupStandaloneAddressFile attempts to delete standalone.txt from the specified folder. If the file does not exist, the function returns nil.

func CleanupStandalonePIDFile added in v0.156.0

func CleanupStandalonePIDFile(info Args) error

CleanupStandalonePIDFile attempts to delete pid.txt from the specified folder. If the file does not exist, the function returns nil.

func CreateStandaloneAddressFile added in v0.156.0

func CreateStandaloneAddressFile(info Args) error

CreateStandaloneAddressFile creates the standalone.txt file containing the address of the GRPC server

func CreateStandalonePIDFile added in v0.156.0

func CreateStandalonePIDFile(info Args) error

CreateStandalonePIDFile creates the pid.txt file containing the PID of the GRPC server process

func FindAndKillCurrentPlugin added in v0.156.0

func FindAndKillCurrentPlugin(dir string)

FindAndKillCurrentPlugin kills the currently registered plugin, causing grafana to restart it this time pointing to our new host.

func RunDummyPluginLocator

func RunDummyPluginLocator(address string)

Types

type Args

type Args struct {
	Address    string
	PID        int
	Standalone bool
	Dir        string
	Debugger   bool
}

func GetInfo

func GetInfo(id string) (Args, error)

func (Args) StandaloneAddressFilePath added in v0.156.0

func (a Args) StandaloneAddressFilePath() string

StandaloneAddressFilePath returns the path to the standalone.txt file, which contains the standalone GRPC address

func (Args) StandalonePIDFilePath added in v0.156.0

func (a Args) StandalonePIDFilePath() string

StandalonePIDFilePath returns the path to the pid.txt file, which contains the standalone GRPC's server PID

Jump to

Keyboard shortcuts

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