Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
New: V2
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed Mar 5, 2019
1 parent 0cd00a9 commit ae34d6f
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 22 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion nontransparent/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/rand"
"strings"

"github.com/influxdata/go-syslog"
"github.com/influxdata/go-syslog/v2"
"time"
)

Expand Down
7 changes: 4 additions & 3 deletions nontransparent/parser.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions nontransparent/parser.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

%%{
Expand Down
4 changes: 2 additions & 2 deletions nontransparent/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion octetcounting/example_test.go
Original file line number Diff line number Diff line change
@@ -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{}) {
Expand Down
4 changes: 2 additions & 2 deletions octetcounting/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions octetcounting/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion rfc5424/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/influxdata/go-syslog"
"github.com/influxdata/go-syslog/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion rfc5424/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package rfc5424

import (
"fmt"
"github.com/influxdata/go-syslog"
"time"

syslog "github.com/influxdata/go-syslog/v2"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion rfc5424/machine.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package rfc5424
import (
"time"
"fmt"
"github.com/influxdata/go-syslog"

syslog "github.com/influxdata/go-syslog/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion rfc5424/machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/influxdata/go-syslog"
"github.com/influxdata/go-syslog/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion rfc5424/options.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 2 additions & 1 deletion rfc5424/parser.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion rfc5424/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rfc5424
import (
"testing"

"github.com/influxdata/go-syslog"
"github.com/influxdata/go-syslog/v2"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion rfc5424/performance_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rfc5424

import (
"github.com/influxdata/go-syslog"
"github.com/influxdata/go-syslog/v2"
"testing"
)

Expand Down

0 comments on commit ae34d6f

Please sign in to comment.