parsley

package
v0.0.0-...-5f5e9cb Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFilters

func ValidateFilters(filters []Filter) error

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

func MergeExistingParsleySettings(oldSettings Settings, newSettings Settings) Settings

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.

Jump to

Keyboard shortcuts

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