Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Jul 8, 2024
1 parent 2367637 commit 479571c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ee/katc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ import (
// identifier parsed from the JSON KATC config, and the `dataFunc` is the function
// that performs the query against the source.
type katcSourceType struct {
name string
name string
// `pathConstraints` comes from the live query or scheduled query, and constrains `sourcePaths` to a particular value.
// For example, `sourcePaths` may allow for querying files belonging to any user ("/Users/%/path/to/file"), and
// `pathConstraints` may narrow the query to a path for a particular user ("/Users/example/path/to/file").
dataFunc func(ctx context.Context, slogger *slog.Logger, sourcePaths []string, query string, pathConstraints *table.ConstraintList) ([]sourceData, error)
}

Expand Down

0 comments on commit 479571c

Please sign in to comment.