cli

package
v0.0.0-...-ecc870c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const EnvAPIPassword = "GGPROXY_API_PASSWORD"
View Source
const EnvAPIUsername = "GGPROXY_API_USERNAME"
View Source
const EnvLicense = "GGPROXY_LICENSE"
View Source
const LinkDashboardDownload = "https://graphguard.io/dashboard#download"

Variables

This section is empty.

Functions

func PrintHelp

func PrintHelp(w io.Writer)

Types

type Command

type Command any

Command can be any of:

CommandServe
CommandReload
CommandStop
CommandHelp

func Parse

func Parse(
	w io.Writer,
	args []string,
	validateLicenseToken func(string) error,
) (cmd Command)

type CommandReload

type CommandReload struct{}

type CommandServe

type CommandServe struct {
	ConfigDirPath string
	LicenseToken  string
	APIUsername   string
	APIPassword   string
}

type CommandStop

type CommandStop struct{}

Jump to

Keyboard shortcuts

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