Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { BackoffAt time.Time BackoffRetries int DisableSSLVerify bool Hostname string Key string Plugin string ProxyURL string SSLCertFilepath string Timeout time.Duration URL string }
API contains api related parameters.
func LoadAPIParams ¶ added in v1.35.4
LoadAPIParams loads API params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.
type FilterParams ¶ added in v1.30.5
type FilterParams struct { Exclude []regex.Regex ExcludeUnknownProject bool Include []regex.Regex IncludeOnlyWithProjectFile bool }
FilterParams contains heartbeat filtering related command parameters.
func (FilterParams) String ¶ added in v1.30.5
func (p FilterParams) String() string
type Heartbeat ¶ added in v1.30.5
type Heartbeat struct { Category heartbeat.Category CursorPosition *int Entity string EntityType heartbeat.EntityType ExtraHeartbeats []heartbeat.Heartbeat IsWrite *bool Language *string LanguageAlternate string LineNumber *int LinesInFile *int LocalFile string Time float64 Filter FilterParams Project ProjectParams Sanitize SanitizeParams }
Heartbeat contains heartbeat command parameters.
func LoadHeartbeatParams ¶ added in v1.35.4
LoadHeartbeatParams loads heartbeats params from viper.Viper instance.
type Offline ¶ added in v1.30.5
Offline contains offline related parameters.
func LoadOfflineParams ¶ added in v1.35.4
LoadOfflineParams loads offline params from viper.Viper instance.
type Params ¶
Params contains params.
type ProjectParams ¶ added in v1.30.5
type ProjectParams struct { Alternate string DisableSubmodule []regex.Regex MapPatterns []project.MapPattern Override string }
ProjectParams params for project name sanitization.
func (ProjectParams) String ¶ added in v1.30.5
func (p ProjectParams) String() string
type SanitizeParams ¶ added in v1.30.5
type SanitizeParams struct { HideBranchNames []regex.Regex HideFileNames []regex.Regex HideProjectFolder bool HideProjectNames []regex.Regex ProjectPathOverride string }
SanitizeParams params for heartbeat sanitization.
func (SanitizeParams) String ¶ added in v1.30.5
func (p SanitizeParams) String() string
type StatusBar ¶ added in v1.30.5
type StatusBar struct {
HideCategories bool
}
StatusBar contains status bar related parameters.
func LoadStausBarParams ¶ added in v1.35.4
LoadStausBarParams loads status bar params from viper.Viper instance.