structtag

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractValues

func ExtractValues(encodedArgs []byte, uniqueKeys []string) []string

ExtractValues extracts the raw JSON values of the specified keys from the JSON-encoded args. Keys are gjson paths like those returned by SortedFieldsWithTag.

func SortedFieldsWithTag

func SortedFieldsWithTag(args rivertype.JobArgs, tagValue string) ([]string, error)

SortedFieldsWithTag retrieves unique fields with caching to avoid extracting fields from the same struct type repeatedly.

Fields are returned as gjson/sjson paths suitable for use with ExtractValues and sjson. Each path component is escaped so a JSON key containing path syntax like `.`, `@`, or `*` addresses that key literally. Paths are sorted by their unescaped, dot-joined JSON keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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