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

Commit

Permalink
feat: update version to v3 for release (#29)
Browse files Browse the repository at this point in the history
- New interface and signatures (breaking changes)
- Initial support RFC 3164


Signed-off-by: Chris Goller <goller@gmail.com>
  • Loading branch information
goller authored Feb 5, 2020
1 parent a79c984 commit fb1cee6
Show file tree
Hide file tree
Showing 27 changed files with 45 additions and 43 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For example:
## Installation

```
go get github.com/influxdata/go-syslog/v2
go get github.com/influxdata/go-syslog/v3
```

## Docs
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module github.com/influxdata/go-syslog/v2
module github.com/influxdata/go-syslog/v3

require (
github.com/davecgh/go-spew v1.1.1
github.com/leodido/ragel-machinery v0.0.0-20181214104525-299bdde78165
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.2.2
)

go 1.13
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/v2"
"github.com/influxdata/go-syslog/v3"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions nontransparent/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package nontransparent
import (
"io"

syslog "github.com/influxdata/go-syslog/v2"
"github.com/influxdata/go-syslog/v2/rfc5424"
syslog "github.com/influxdata/go-syslog/v3"
"github.com/influxdata/go-syslog/v3/rfc5424"
parser "github.com/leodido/ragel-machinery/parser"
)

Expand Down
4 changes: 2 additions & 2 deletions nontransparent/parser.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"io"

parser "github.com/leodido/ragel-machinery/parser"
syslog "github.com/influxdata/go-syslog/v2"
"github.com/influxdata/go-syslog/v2/rfc5424"
syslog "github.com/influxdata/go-syslog/v3"
"github.com/influxdata/go-syslog/v3/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/v2"
"github.com/influxdata/go-syslog/v2/rfc5424"
"github.com/influxdata/go-syslog/v3"
"github.com/influxdata/go-syslog/v3/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
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/davecgh/go-spew/spew"
syslog "github.com/influxdata/go-syslog/v2"
syslog "github.com/influxdata/go-syslog/v3"
)

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"

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

// parser is capable to parse the input stream containing syslog messages with octetcounting framing.
Expand Down
6 changes: 3 additions & 3 deletions octetcounting/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"
"testing"

"github.com/influxdata/go-syslog/v2"
"github.com/influxdata/go-syslog/v2/rfc5424"
syslogtesting "github.com/influxdata/go-syslog/v2/testing"
"github.com/influxdata/go-syslog/v3"
"github.com/influxdata/go-syslog/v3/rfc5424"
syslogtesting "github.com/influxdata/go-syslog/v3/testing"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions rfc3164/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

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

var (
Expand Down
4 changes: 2 additions & 2 deletions rfc3164/machine.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

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

var (
Expand Down
4 changes: 2 additions & 2 deletions rfc3164/machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

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

Expand Down
2 changes: 1 addition & 1 deletion rfc3164/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rfc3164
import (
"time"

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

// WithBestEffort enables the best effort mode.
Expand Down
2 changes: 1 addition & 1 deletion rfc3164/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rfc3164
import (
"sync"

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

// parser represent a RFC3164 parser with mutex capabilities.
Expand Down
4 changes: 2 additions & 2 deletions rfc3164/syslog_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rfc3164
import (
"time"

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

type syslogMessage struct {
Expand Down
2 changes: 1 addition & 1 deletion rfc5424/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"time"

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

// todo(leodido) > support best effort for builder ?
Expand Down
2 changes: 1 addition & 1 deletion rfc5424/builder.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"fmt"

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

// todo(leodido) > support best effort for builder ?
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/v2"
"github.com/influxdata/go-syslog/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions rfc5424/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

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

// ColumnPositionTemplate is the template used to communicate the column where errors occur.
Expand Down
4 changes: 2 additions & 2 deletions rfc5424/machine.go.rl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"time"
"fmt"

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

// ColumnPositionTemplate is the template used to communicate the column where errors occur.
Expand Down
4 changes: 2 additions & 2 deletions rfc5424/machine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math/rand"
"testing"

"github.com/influxdata/go-syslog/v2"
syslogtesting "github.com/influxdata/go-syslog/v2/testing"
"github.com/influxdata/go-syslog/v3"
syslogtesting "github.com/influxdata/go-syslog/v3/testing"
"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 (
syslog "github.com/influxdata/go-syslog/v2"
syslog "github.com/influxdata/go-syslog/v3"
)

// WithBestEffort enables the best effort mode.
Expand Down
2 changes: 1 addition & 1 deletion rfc5424/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rfc5424
import (
"sync"

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

// parser represent a RFC5424 parser with mutex capabilities.
Expand Down
4 changes: 2 additions & 2 deletions rfc5424/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rfc5424
import (
"testing"

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

Expand Down
4 changes: 2 additions & 2 deletions rfc5424/performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rfc5424
import (
"testing"

"github.com/influxdata/go-syslog/v2"
syslogtesting "github.com/influxdata/go-syslog/v2/testing"
"github.com/influxdata/go-syslog/v3"
syslogtesting "github.com/influxdata/go-syslog/v3/testing"
)

// This is here to avoid compiler optimizations that
Expand Down
4 changes: 2 additions & 2 deletions rfc5424/syslog_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rfc5424
import (
"time"

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

type syslogMessage struct {
Expand Down
2 changes: 1 addition & 1 deletion syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"io"
"time"

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

// BestEfforter is an interface that wraps the HasBestEffort method.
Expand Down

0 comments on commit fb1cee6

Please sign in to comment.