Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithoutSending ¶
RunWithoutSending saves heartbeats to the offline db without trying to send to the API. Should only be used after a config file parse error.
Types ¶
type FilterParams ¶
type FilterParams struct { Exclude []regex.Regex ExcludeUnknownProject bool Include []regex.Regex IncludeOnlyWithProjectFile bool }
FilterParams contains heartbeat filtering related command parameters.
func (FilterParams) String ¶
func (p FilterParams) String() string
type Params ¶
type Params 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 OfflineDisabled bool OfflineQueueFile string OfflineSyncMax int Time float64 API paramscmd.API Filter FilterParams Project ProjectParams Sanitize SanitizeParams }
Params contains heartbeat command parameters.
func LoadParams ¶
LoadParams loads heartbeat config params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.
func LoadParamsWithAPIKey ¶
LoadParamsWithAPIKey loads heartbeat config params from viper.Viper instance. When apiKeyRequired is true, returns ErrAuth if failed to retrieve api key.
type ProjectParams ¶
type ProjectParams struct { Alternate string DisableSubmodule []regex.Regex MapPatterns []project.MapPattern Override string }
ProjectParams params for project name sanitization.
func (ProjectParams) String ¶
func (p ProjectParams) String() string
Click to show internal directories.
Click to hide internal directories.