cmd

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumParts                    int         = 2
	LatestVersion               string      = "latest"
	FolderPermissions           os.FileMode = 0o755
	FilePermissions             os.FileMode = 0o644
	ExecFilePermissions         os.FileMode = 0o755
	ExecFileMask                os.FileMode = 0o111
	MaxFileSize                 int64       = 1024 * 1024 * 100 // 100 MB
	BackupFileExt               string      = ".bak"
	DefaultPluginConfigFilename string      = "./gatewayd_plugin.yaml"
	GitHubURLPrefix             string      = "github.com/"
	GitHubURLRegex              string      = `` //nolint:lll
	/* 323-byte string literal not displayed */
	LocationArgs   Location       = "args"
	LocationConfig Location       = "config"
	SourceUnknown  Source         = "unknown"
	SourceFile     Source         = "file"
	SourceGitHub   Source         = "github"
	ExtensionZip   Extension      = ".zip"
	ExtensionTarGz Extension      = ".tar.gz"
	Global         configFileType = "global"
	Plugins        configFileType = "plugins"
)
View Source
const DSN = "https://e22f42dbb3e0433fbd9ea32453faa598@o4504550475038720.ingest.sentry.io/4504550481723392"

Variables

View Source
var (
	UsageReportURL = "localhost:59091"
)

TODO: Get rid of the global variables. https://github.com/gatewayd-io/gatewayd/issues/324

Functions

func Execute

func Execute()

func StopGracefully added in v0.7.9

func StopGracefully(
	runCtx context.Context,
	sig os.Signal,
	metricsMerger *metrics.Merger,
	metricsServer *http.Server,
	pluginRegistry *plugin.Registry,
	logger zerolog.Logger,
	servers map[string]*network.Server,
	stopChan chan struct{},
	httpServer *api.HTTPServer,
	grpcServer *api.GRPCServer,
)

Types

type Extension added in v0.8.11

type Extension string

type Location added in v0.8.11

type Location string

type Source added in v0.8.11

type Source string

Jump to

Keyboard shortcuts

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