Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFilters ¶
ValidateFilters checks that there are no duplicate filters. It also validates each individual filter.
Types ¶
type Filter ¶
type Filter struct {
Description string `bson:"description,omitempty" json:"description,omitempty"`
Expression string `bson:"expression" json:"expression"`
CaseSensitive bool `bson:"case_sensitive" json:"case_sensitive"`
ExactMatch bool `bson:"exact_match" json:"exact_match"`
}
Filter represents a filter for the Parsley log viewer. Parsley filters can be defined at the project-level and at the user-level.
type Settings ¶
type Settings struct {
SectionsEnabled *bool `bson:"sections_enabled,omitempty" json:"sections_enabled,omitempty"`
JumpToFailingLineEnabled *bool `bson:"jump_to_failing_line_enabled,omitempty" json:"jump_to_failing_line_enabled,omitempty"`
}
Settings represents settings that can be configured for the Parsley log viewer.
func MergeExistingParsleySettings ¶
MergeExistingParsleySettings returns the merged result of oldSettings and newSettings. newSettings can be a subset of fields, so we populate the unset fields using the user's oldSettings.
Click to show internal directories.
Click to hide internal directories.