Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 legacyparams.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.
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.