Support unixgram syslog address

- Consider unixgram:// as a valid URL prefix
- Parse unixgram:// addresses
- Update docs

Signed-off-by: Zhuoyun Wei <wzyboy@wzyboy.org>
This commit is contained in:
Zhuoyun Wei 2016-03-29 18:21:41 +08:00
parent d70faf86e8
commit 0554f41c13
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@ var (
validPrefixes = map[string][]string{
"url": {"http://", "https://"},
"git": {"git://", "github.com/", "git@"},
"transport": {"tcp://", "tcp+tls://", "udp://", "unix://"},
"transport": {"tcp://", "tcp+tls://", "udp://", "unix://", "unixgram://"},
}
urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$")
)

View file

@ -23,6 +23,7 @@ var (
"tcp+tls://example.com",
"udp://example.com",
"unix:///example",
"unixgram:///example",
}
)