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:
mmetc 2024-10-10 15:54:25 +02:00 committed by GitHub
parent 4ea0537d0b
commit 50d115b914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 259 additions and 236 deletions

View file

@ -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,
},
},