Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryToYamlLines ¶
QueryToYamlLines converts a Query into a YAML string split into lines. It returns a slice of strings, each representing a line of the YAML output. If an error occurs during marshalling, the returned slice contains an error message.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func New ¶
func New(configQueries *QueriesConfig) Model
type QueriesConfig ¶
type QueriesConfig struct {
Queries []Query `yaml:"queries"`
}
QueriesConfig represents a collection of queries
func LoadQueriesFromYaml ¶
func LoadQueriesFromYaml(filename string) (*QueriesConfig, error)
type Query ¶
Query represents a single varnishlog query
func (Query) Description ¶
Description satisfaces list.DefaultItem interface
func (Query) FilterValue ¶
FilterValue satisfaces list.Item interface
Click to show internal directories.
Click to hide internal directories.