forwardif

package module
v0.0.0-...-fade99d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: MIT Imports: 2 Imported by: 0

README

forwardif

coredns plugin for conditional forward rules.

Build Status

Example

. {
  forwardif {
    adb adb:///path/to/file

    // forward rule on one of the conditions matched
    forward_to 10.0.0.1
  }

  // fallback rule
  forward . 8.8.8.8
}

coredns build

See coredns_build.

LICENSE

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FalseMatcher

func FalseMatcher(request.Request) bool

Types

type MatchFunc

type MatchFunc func(request.Request) bool

func NewRegexMatch

func NewRegexMatch(regex string) (MatchFunc, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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