Documentation
¶
Overview ¶
Package ruleset provides compilation of local sing-box rule-sets from JSON source format to binary .srs format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SourceFile ¶
SourceFile represents a discovered rule-set source file in a server directory.
func FindSourceFiles ¶
func FindSourceFiles(dir string, customRuleSets []string) ([]SourceFile, error)
FindSourceFiles scans the server directory for JSON rule-set source files matching the given custom rule-set names. For each name, it looks for <name>.json in the directory. Files that are cheburbox.json, config.json, or .cheburbox.jsonnet are never treated as rule-set sources.
Click to show internal directories.
Click to hide internal directories.