Skip to content

Commit

Permalink
Merge pull request BelWue#5 from ynHuber/bugfix_goflowtest_failing
Browse files Browse the repository at this point in the history
bugfix: goflow segment not registered
  • Loading branch information
ynHuber authored Nov 22, 2024
2 parents dce2042 + b99091f commit 6bc8c70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions segments/input/goflow/goflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ func (d *myProtobufDriver) Format(data interface{}) ([]byte, []byte, error) {
func (d *myProtobufDriver) Prepare() error { return nil }
func (d *myProtobufDriver) Init(context.Context) error { return nil }

func init() {
segment := &Goflow{}
segments.RegisterSegment("goflow", segment)
}

func (segment *Goflow) startGoFlow(transport transport.TransportInterface) {
formatter := &myProtobufDriver{}
var pipes []utils.FlowPipe
Expand Down

0 comments on commit 6bc8c70

Please sign in to comment.