From ae34d6fc01b152c5e3e97e519cde9ab94429f78c Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Tue, 5 Mar 2019 01:20:04 +0100 Subject: [PATCH] New: V2 Signed-off-by: Leonardo Di Donato --- go.mod | 2 +- nontransparent/example_test.go | 2 +- nontransparent/parser.go | 7 ++++--- nontransparent/parser.go.rl | 5 +++-- nontransparent/parser_test.go | 4 ++-- octetcounting/example_test.go | 2 +- octetcounting/parser.go | 4 ++-- octetcounting/parser_test.go | 4 ++-- rfc5424/builder_test.go | 2 +- rfc5424/machine.go | 3 ++- rfc5424/machine.go.rl | 3 ++- rfc5424/machine_test.go | 2 +- rfc5424/options.go | 2 +- rfc5424/parser.go | 3 ++- rfc5424/parser_test.go | 2 +- rfc5424/performance_test.go | 2 +- 16 files changed, 27 insertions(+), 22 deletions(-) diff --git a/go.mod b/go.mod index 6acdc3d..37469c3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/influxdata/go-syslog +module github.com/influxdata/go-syslog/v2 require ( github.com/davecgh/go-spew v1.1.1 diff --git a/nontransparent/example_test.go b/nontransparent/example_test.go index 31da595..e7ced70 100644 --- a/nontransparent/example_test.go +++ b/nontransparent/example_test.go @@ -6,7 +6,7 @@ import ( "math/rand" "strings" - "github.com/influxdata/go-syslog" + "github.com/influxdata/go-syslog/v2" "time" ) diff --git a/nontransparent/parser.go b/nontransparent/parser.go index 0fa87a7..937e012 100644 --- a/nontransparent/parser.go +++ b/nontransparent/parser.go @@ -1,10 +1,11 @@ package nontransparent import ( - syslog "github.com/influxdata/go-syslog" - "github.com/influxdata/go-syslog/rfc5424" - parser "github.com/leodido/ragel-machinery/parser" "io" + + syslog "github.com/influxdata/go-syslog/v2" + "github.com/influxdata/go-syslog/v2/rfc5424" + parser "github.com/leodido/ragel-machinery/parser" ) const nontransparentStart int = 1 diff --git a/nontransparent/parser.go.rl b/nontransparent/parser.go.rl index a97bde8..15d467e 100644 --- a/nontransparent/parser.go.rl +++ b/nontransparent/parser.go.rl @@ -2,9 +2,10 @@ package nontransparent import ( "io" + parser "github.com/leodido/ragel-machinery/parser" - syslog "github.com/influxdata/go-syslog" - "github.com/influxdata/go-syslog/rfc5424" + syslog "github.com/influxdata/go-syslog/v2" + "github.com/influxdata/go-syslog/v2/rfc5424" ) %%{ diff --git a/nontransparent/parser_test.go b/nontransparent/parser_test.go index e32ce8a..91f046f 100644 --- a/nontransparent/parser_test.go +++ b/nontransparent/parser_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/influxdata/go-syslog" - "github.com/influxdata/go-syslog/rfc5424" + "github.com/influxdata/go-syslog/v2" + "github.com/influxdata/go-syslog/v2/rfc5424" "github.com/leodido/ragel-machinery" "github.com/stretchr/testify/assert" ) diff --git a/octetcounting/example_test.go b/octetcounting/example_test.go index 5c6b5cd..9bf5ee0 100644 --- a/octetcounting/example_test.go +++ b/octetcounting/example_test.go @@ -1,12 +1,12 @@ package octetcounting import ( - "github.com/influxdata/go-syslog" "io" "strings" "time" "github.com/davecgh/go-spew/spew" + syslog "github.com/influxdata/go-syslog/v2" ) func output(out interface{}) { diff --git a/octetcounting/parser.go b/octetcounting/parser.go index f673272..0a74580 100644 --- a/octetcounting/parser.go +++ b/octetcounting/parser.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/influxdata/go-syslog" - "github.com/influxdata/go-syslog/rfc5424" + syslog "github.com/influxdata/go-syslog/v2" + "github.com/influxdata/go-syslog/v2/rfc5424" ) // parser is capable to parse the input stream following octetcounting. diff --git a/octetcounting/parser_test.go b/octetcounting/parser_test.go index 0ec1600..769a0e3 100644 --- a/octetcounting/parser_test.go +++ b/octetcounting/parser_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/influxdata/go-syslog" - "github.com/influxdata/go-syslog/rfc5424" + syslog "github.com/influxdata/go-syslog/v2" + "github.com/influxdata/go-syslog/v2/rfc5424" "github.com/stretchr/testify/assert" ) diff --git a/rfc5424/builder_test.go b/rfc5424/builder_test.go index 5b699d6..d834e01 100644 --- a/rfc5424/builder_test.go +++ b/rfc5424/builder_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/influxdata/go-syslog" + "github.com/influxdata/go-syslog/v2" "github.com/stretchr/testify/assert" ) diff --git a/rfc5424/machine.go b/rfc5424/machine.go index f15324d..f22323c 100644 --- a/rfc5424/machine.go +++ b/rfc5424/machine.go @@ -2,8 +2,9 @@ package rfc5424 import ( "fmt" - "github.com/influxdata/go-syslog" "time" + + syslog "github.com/influxdata/go-syslog/v2" ) var ( diff --git a/rfc5424/machine.go.rl b/rfc5424/machine.go.rl index 56cba71..75b2e59 100644 --- a/rfc5424/machine.go.rl +++ b/rfc5424/machine.go.rl @@ -3,7 +3,8 @@ package rfc5424 import ( "time" "fmt" - "github.com/influxdata/go-syslog" + + syslog "github.com/influxdata/go-syslog/v2" ) var ( diff --git a/rfc5424/machine_test.go b/rfc5424/machine_test.go index 3760e41..19cdffb 100644 --- a/rfc5424/machine_test.go +++ b/rfc5424/machine_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/influxdata/go-syslog" + "github.com/influxdata/go-syslog/v2" "github.com/stretchr/testify/assert" ) diff --git a/rfc5424/options.go b/rfc5424/options.go index 223ca56..e83173d 100644 --- a/rfc5424/options.go +++ b/rfc5424/options.go @@ -1,7 +1,7 @@ package rfc5424 import ( - "github.com/influxdata/go-syslog" + syslog "github.com/influxdata/go-syslog/v2" ) // WithBestEffort enables the best effort mode. diff --git a/rfc5424/parser.go b/rfc5424/parser.go index 08c6e5f..a4ef241 100644 --- a/rfc5424/parser.go +++ b/rfc5424/parser.go @@ -1,8 +1,9 @@ package rfc5424 import ( - "github.com/influxdata/go-syslog" "sync" + + syslog "github.com/influxdata/go-syslog/v2" ) // parser represent a RFC5424 parser with mutex capabilities. diff --git a/rfc5424/parser_test.go b/rfc5424/parser_test.go index 12f44ea..2149832 100644 --- a/rfc5424/parser_test.go +++ b/rfc5424/parser_test.go @@ -3,7 +3,7 @@ package rfc5424 import ( "testing" - "github.com/influxdata/go-syslog" + "github.com/influxdata/go-syslog/v2" "github.com/stretchr/testify/assert" ) diff --git a/rfc5424/performance_test.go b/rfc5424/performance_test.go index 3491392..5cebdf2 100644 --- a/rfc5424/performance_test.go +++ b/rfc5424/performance_test.go @@ -1,7 +1,7 @@ package rfc5424 import ( - "github.com/influxdata/go-syslog" + "github.com/influxdata/go-syslog/v2" "testing" )