Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to absolute import #4

Merged
merged 1 commit into from
Jan 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Switch to absolute import
  • Loading branch information
terencefan committed Jan 16, 2019
commit 75cddfc5fd8bb3a7a526d9debc64850318cdf47f
2 changes: 1 addition & 1 deletion cat/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"strconv"

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

const batchFlag = '@'
Expand Down
2 changes: 1 addition & 1 deletion cat/aggregator_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

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

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

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

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

type transactionData struct {
Expand Down
2 changes: 1 addition & 1 deletion cat/cat_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cat
import (
"time"

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

func NewTransaction(mtype, name string) message.Transactor {
Expand Down
2 changes: 1 addition & 1 deletion cat/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

type catMessageManager struct {
Expand Down
2 changes: 1 addition & 1 deletion cat/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/shirou/gopsutil/cpu"

"../message"
"github.com/Meituan-Dianping/cat-go/message"
)

type catMonitor struct {
Expand Down
3 changes: 2 additions & 1 deletion cat/sender.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cat

import (
"../message"
"bytes"
"encoding/binary"
"net"
"time"

"github.com/Meituan-Dianping/cat-go/message"
)

func createHeader() *message.Header {
Expand Down