-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
313 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Configuration | ||
|
||
|
||
## Configuration file | ||
|
||
- [see godoc](https://pkg.go.dev/github.com/mimuret/dtap/v2@v2.0.0-alpha.18/pkg/config#Config) | ||
|
||
|
||
## filter_plugin | ||
|
||
- [iphash](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/iphash#IPHash) | ||
- [label](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/label#Label) | ||
- [mask](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/mask#Mask) | ||
- [matcher](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/matcher#MatcherConfig) | ||
- [metrics](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/metrics#Metrics) | ||
|
||
### for debug | ||
|
||
- [nop](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/nop#Nop) | ||
- [static](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/filter/static#Static) | ||
|
||
## input plugin | ||
|
||
- [file](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/input/file#File) | ||
- [nats](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/input/nats#Nats) | ||
- [tcp](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/input/tcp#TCPSocket) | ||
- [unix](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/input/unix#UnixSocket) | ||
|
||
## output plugins | ||
|
||
- [file](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/file#Output) | ||
- [nats](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/nats#Nats) | ||
- [stdout](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/stdout#Stdout) | ||
- [tcp](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/tcp#TCP) | ||
- [unix](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/unix#Unix) | ||
|
||
### debug and experimental plugins | ||
|
||
- [dns](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/dns#DNS) | ||
- [fluent](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/fluent#Fluent) | ||
- [kafka](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/kafka#Kafka) | ||
- [loki](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/loki#Loki) | ||
- [loki](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/loki#Loki) | ||
- [nop](https://pkg.go.dev/github.com/mimuret/dtap/v2/pkg/plugin/output/nop#NOP) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2022 Manabu Sonoda | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package matcher | ||
|
||
import ( | ||
umatcher "github.com/mimuret/dnsutils/matcher" | ||
) | ||
|
||
func UpdateSet(f *Matcher, set *umatcher.MatcherSet) *Matcher { | ||
f.set = set | ||
return f | ||
} | ||
func GetSet(f *Matcher) *umatcher.MatcherSet { | ||
return f.set | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.