Documentation ¶ Index ¶ func TypeString(typ RType) string type RType type RValue type Rule func NewRule(name string, typ RType, content string) (Rule, error) func RuleFromRR(rr dns.RR) (Rule, error) func (r *Rule) RR() (dns.RR, error) func (r *Rule) Same(other *Rule) bool type Tx type Upstream Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func TypeString ¶ added in v0.10.0 func TypeString(typ RType) string Types ¶ type RType ¶ type RType = uint16 type RValue ¶ type RValue any type Rule ¶ type Rule struct { Name string Type RType Value RValue ValueStr string } func NewRule ¶ added in v0.10.0 func NewRule(name string, typ RType, content string) (Rule, error) func RuleFromRR ¶ func RuleFromRR(rr dns.RR) (Rule, error) func (*Rule) RR ¶ func (r *Rule) RR() (dns.RR, error) func (*Rule) Same ¶ added in v0.10.0 func (r *Rule) Same(other *Rule) bool type Tx ¶ type Tx interface { Delete(r Rule) error Append(r Rule) error Commit(ctx context.Context) error Close() } type Upstream ¶ type Upstream interface { Tx(ctx context.Context) (Tx, error) Query(ctx context.Context, q Rule) ([]Rule, error) } Source Files ¶ View all Source files rule.gorule_parser.goupstream.go Directories ¶ Show internal Expand all Path Synopsis uadguard rules ucloudflare Click to show internal directories. Click to hide internal directories.