mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
Update protobufs (#3276)
* deps: update protobufs; add pkg/protobufs/generate.go * generate protobuf in CI * make: remove generate target * pin protoc
This commit is contained in:
parent
4ea0537d0b
commit
50d115b914
17 changed files with 259 additions and 236 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
plugin "github.com/hashicorp/go-plugin"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
||||
"github.com/crowdsecurity/crowdsec/pkg/csplugin"
|
||||
"github.com/crowdsecurity/crowdsec/pkg/protobufs"
|
||||
)
|
||||
|
||||
|
@ -32,6 +33,7 @@ type PluginConfig struct {
|
|||
}
|
||||
|
||||
type Splunk struct {
|
||||
protobufs.UnimplementedNotifierServer
|
||||
PluginConfigByName map[string]PluginConfig
|
||||
Client http.Client
|
||||
}
|
||||
|
@ -117,7 +119,7 @@ func main() {
|
|||
plugin.Serve(&plugin.ServeConfig{
|
||||
HandshakeConfig: handshake,
|
||||
Plugins: map[string]plugin.Plugin{
|
||||
"splunk": &protobufs.NotifierPlugin{
|
||||
"splunk": &csplugin.NotifierPlugin{
|
||||
Impl: sp,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue