config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: GPL-3.0, GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayoutForTimeStamp = "Jan 2, 2006 at 3:04pm"
)

Variables

View Source
var APILog = logging.MustGetLogger("gauge-api")
View Source
var ProjectRoot string

Functions

func CheckUpdates added in v0.3.0

func CheckUpdates() bool

CheckUpdates determines if update check is enabled

func GaugeRepositoryUrl

func GaugeRepositoryUrl() string

GaugeRepositoryUrl fetches the repository URL to locate plugins

func GaugeTemplatesUrl added in v0.3.0

func GaugeTemplatesUrl() string

GaugeTemplatesUrl fetches the URL to be used to download project templates

func GaugeUpdateUrl added in v0.3.0

func GaugeUpdateUrl() string

GaugeUpdateUrl fetches the URL to be used to check updates

func GetProperty added in v0.9.0

func GetProperty(name string) (string, error)

func IdeRequestTimeout added in v0.9.8

func IdeRequestTimeout() time.Duration

Timeout in milliseconds for requests from the grpc language runner.

func List added in v0.9.0

func List(machineReadable bool) (string, error)

func Merge added in v0.9.0

func Merge() error

func MergedProperties added in v0.9.0

func MergedProperties() *properties

func PluginConnectionTimeout

func PluginConnectionTimeout() time.Duration

PluginConnectionTimeout gets timeout in milliseconds for making a connection to plugins

func PluginKillTimeout

func PluginKillTimeout() time.Duration

PluginKillTimeout gets timeout in milliseconds for a plugin to stop after a kill message has been sent

func Properties added in v0.9.0

func Properties() *properties

func RecordTelemetryConsentSet added in v1.0.1

func RecordTelemetryConsentSet()

RecordTelemetryConsentSet records that user has opted in/out

func RefactorTimeout

func RefactorTimeout() time.Duration

RefactorTimeout returns the default timeout value for a refactoring request.

func RunnerConnectionTimeout

func RunnerConnectionTimeout() time.Duration

RunnerConnectionTimeout gets timeout in milliseconds for making a connection to the language runner

func RunnerRequestTimeout

func RunnerRequestTimeout() time.Duration

Timeout in milliseconds for requests from the language runner.

func SetProjectRoot

func SetProjectRoot(args []string) error

SetProjectRoot sets project root location in ENV.

func TelemetryConsent added in v1.0.1

func TelemetryConsent() bool

TelemetryConsent determines if user has opted in/out of telemetry either via config or by setting GAUGE_TELEMETRY_ENABLED environment variable

func TelemetryEnabled added in v0.9.0

func TelemetryEnabled() bool

TelemetryEnabled determines if sending data to gauge telemetry engine is enabled

func TelemetryLogEnabled added in v0.9.0

func TelemetryLogEnabled() bool

TelemetryLogEnabled determines if requests to gauge telemetry engine have to be logged

func UniqueID added in v0.8.5

func UniqueID() string

UniqueID gets the unique installation ID.

func Update added in v0.9.0

func Update(name, value string) error

func UpdateTelemetry added in v0.9.0

func UpdateTelemetry(value string) error

func UpdateTelemetryLoggging added in v0.9.0

func UpdateTelemetryLoggging(value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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