Skip to content

Commit

Permalink
clenaup and update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuadros committed Apr 25, 2016
1 parent a2d3207 commit 280fd46
Show file tree
Hide file tree
Showing 24 changed files with 41 additions and 140 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ go:
- 1.6
- tip

install:
- rm -rf $GOPATH/src/gopkg.in/mcuadros
- mkdir -p $GOPATH/src/gopkg.in/mcuadros
- ln -s $PWD $GOPATH/src/gopkg.in/mcuadros/go-syslog.v2
- cd $GOPATH/src/gopkg.in/mcuadros/go-syslog.v2 && go get -v -t ./...

script:
- go test -v ./...
- cd $GOPATH/src/gopkg.in/mcuadros/go-syslog.v2 && go test -v ./...

sudo: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go-syslog [![Build Status](https://travis-ci.org/mcuadros/go-syslog.png?branch=master)](https://travis-ci.org/mcuadros/go-syslog) [![GoDoc](http://godoc.org/github.com/mcuadros/go-syslog?status.png)](http://godoc.org/github.com/mcuadros/go-syslog) [![GitHub release](https://img.shields.io/github/release/mcuadros/go-syslog.svg)](https://github.com/mcuadros/go-syslog/releases)
go-syslog [![Build Status](https://travis-ci.org/mcuadros/go-syslog.png?branch=master)](https://travis-ci.org/mcuadros/go-syslog) [![GoDoc](http://godoc.org/github.com/mcuadros/go-syslog?status.png)](hhttps://godoc.org/gopkg.in/mcuadros/go-syslog.v2) [![GitHub release](https://img.shields.io/github/release/mcuadros/go-syslog.svg)](https://github.com/mcuadros/go-syslog/releases)
==============================

Syslog server library for go, build easy your custom syslog server over UDP, TCP or Unix sockets using RFC3164, RFC6587 or RFC5424
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Syslog server library for go, build easy your custom syslog server
over UDP, TCP or Unix sockets using RFC3164 or RFC5424
over UDP, TCP or Unix sockets using RFC3164, RFC5424 and RFC6587
*/
package syslog
package syslog // import "gopkg.in/mcuadros/go-syslog.v2"
6 changes: 3 additions & 3 deletions format/automatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"errors"
"strconv"

"github.com/Xiol/syslogparser"
"github.com/Xiol/syslogparser/rfc3164"
"github.com/Xiol/syslogparser/rfc5424"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc3164"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc5424"
)

/* Selecting an 'Automatic' format detects incoming format (i.e. RFC3164 vs RFC5424) and Framing
Expand Down
2 changes: 1 addition & 1 deletion format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package format
import (
"bufio"

"github.com/Xiol/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

type Format interface {
Expand Down
4 changes: 2 additions & 2 deletions format/rfc3164.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package format
import (
"bufio"

"github.com/Xiol/syslogparser"
"github.com/Xiol/syslogparser/rfc3164"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc3164"
)

type RFC3164 struct{}
Expand Down
4 changes: 2 additions & 2 deletions format/rfc5424.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package format
import (
"bufio"

"github.com/Xiol/syslogparser"
"github.com/Xiol/syslogparser/rfc5424"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc5424"
)

type RFC5424 struct{}
Expand Down
4 changes: 2 additions & 2 deletions format/rfc6587.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"bytes"
"strconv"

"github.com/Xiol/syslogparser"
"github.com/Xiol/syslogparser/rfc5424"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc5424"
)

type RFC6587 struct{}
Expand Down
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package syslog

import (
"github.com/Xiol/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

//The handler receive every syslog entry at Handle method
Expand Down
2 changes: 1 addition & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package syslog

import (
"github.com/Xiol/syslogparser"
. "gopkg.in/check.v1"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

type HandlerSuite struct{}
Expand Down
1 change: 0 additions & 1 deletion internal/syslogparser/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions internal/syslogparser/Makefile

This file was deleted.

93 changes: 0 additions & 93 deletions internal/syslogparser/README

This file was deleted.

4 changes: 4 additions & 0 deletions internal/syslogparser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Syslogparser
============

This is a fork for [github.com/jeromer/syslogparser](https://github.com/jeromer/syslogparser), since this library is intensively used by `go-syslog`, now is integrated as a `internal` package.
1 change: 0 additions & 1 deletion internal/syslogparser/dependencies.txt

This file was deleted.

3 changes: 2 additions & 1 deletion internal/syslogparser/rfc3164/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package rfc3164_test

import (
"fmt"
"github.com/Xiol/syslogparser/rfc3164"

"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc3164"
)

func ExampleNewParser() {
Expand Down
2 changes: 1 addition & 1 deletion internal/syslogparser/rfc3164/rfc3164.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"time"

"github.com/Xiol/syslogparser"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

type Parser struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/syslogparser/rfc3164/rfc3164_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/Xiol/syslogparser"
. "gopkg.in/check.v1"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

// Hooks up gocheck into the gotest runner.
Expand Down
3 changes: 2 additions & 1 deletion internal/syslogparser/rfc5424/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package rfc5424_test

import (
"fmt"
"github.com/Xiol/syslogparser/rfc5424"

"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser/rfc5424"
)

func ExampleNewParser() {
Expand Down
3 changes: 2 additions & 1 deletion internal/syslogparser/rfc5424/rfc5424.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package rfc5424

import (
"fmt"
"github.com/Xiol/syslogparser"
"math"
"strconv"
"time"

"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions internal/syslogparser/rfc5424/rfc5424_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package rfc5424

import (
"fmt"
"github.com/Xiol/syslogparser"
. "gopkg.in/check.v1"
"testing"
"time"

. "gopkg.in/check.v1"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

// Hooks up gocheck into the gotest runner.
Expand Down
3 changes: 2 additions & 1 deletion internal/syslogparser/syslogparser_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package syslogparser

import (
. "gopkg.in/check.v1"
"testing"

. "gopkg.in/check.v1"
)

// Hooks up gocheck into the gotest runner.
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"
"time"

"github.com/Xiol/go-syslog/format"
"gopkg.in/mcuadros/go-syslog.v2/format"
)

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

"github.com/Xiol/syslogparser"
. "gopkg.in/check.v1"
"gopkg.in/mcuadros/go-syslog.v2/internal/syslogparser"
)

func Test(t *testing.T) { TestingT(t) }
Expand Down

0 comments on commit 280fd46

Please sign in to comment.