Skip to content

Commit

Permalink
move to h12.io
Browse files Browse the repository at this point in the history
Change-Id: I30d930654ab39563b40d6d1f442a04bdac80d94a
  • Loading branch information
Hal Wang committed May 5, 2018
1 parent ecf4188 commit 07ad8dd
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 45 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
kpax: a modular & idiomatic Kafka client in Go
==============================================

[![GoDoc](https://godoc.org/h12.me/kpax?status.svg)](https://godoc.org/h12.me/kpax)
[![GoDoc](https://godoc.org/h12.io/kpax?status.svg)](https://godoc.org/h12.io/kpax)

Install
-------

```
go get -u h12.me/kpax.v1
go get -u h12.io/kpax.v1
```

### Compatibility

h12.me/kpax.v1 is compatible with Kafka Server 0.8.2.
h12.io/kpax.v1 is compatible with Kafka Server 0.8.2.

Design
------
Expand Down
2 changes: 1 addition & 1 deletion broker/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"

"h12.me/kpax/model"
"h12.io/kpax/model"
)

type AsyncBroker struct {
Expand Down
2 changes: 1 addition & 1 deletion broker/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"
"gopkg.in/fatih/pool.v2"
"h12.me/kpax/model"
"h12.io/kpax/model"
)
const defaultTimeout = 30 * time.Second
Expand Down
4 changes: 2 additions & 2 deletions cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"sync"

"h12.me/kpax/model"
"h12.me/kpax/proto"
"h12.io/kpax/model"
"h12.io/kpax/proto"
)

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

"h12.me/kpax/model"
"h12.me/kpax/log"
"h12.io/kpax/model"
"h12.io/kpax/log"
)

type brokerPool struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/kpax/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"sync/atomic"
"time"

"h12.me/kpax/consumer"
"h12.me/kpax/model"
"h12.me/kpax/producer"
"h12.me/kpax/proto"
"h12.io/kpax/consumer"
"h12.io/kpax/model"
"h12.io/kpax/producer"
"h12.io/kpax/proto"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cmd/kpax/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"time"

"gopkg.in/vmihailenco/msgpack.v2"
"h12.me/kpax/consumer"
"h12.me/kpax/model"
"h12.me/kpax/proto"
"h12.me/uuid/hexid"
"h12.io/kpax/consumer"
"h12.io/kpax/model"
"h12.io/kpax/proto"
"h12.io/uuid/hexid"
)

type Format string
Expand Down
8 changes: 4 additions & 4 deletions cmd/kpax/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package main
import (
"log"

"h12.me/config"
"h12.me/kpax/broker"
"h12.me/kpax/cluster"
"h12.io/config"
"h12.io/kpax/broker"
"h12.io/kpax/cluster"
)

const (
clientID = "h12.me/kpax/kafpro"
clientID = "h12.io/kpax/kafpro"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"time"

"h12.me/kpax/model"
"h12.me/kpax/proto"
"h12.io/kpax/model"
"h12.io/kpax/proto"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions kpaxutil/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package kpaxutil
import (
"encoding"

"h12.me/kpax/broker"
"h12.me/kpax/cluster"
"h12.me/kpax/producer"
"h12.io/kpax/broker"
"h12.io/kpax/cluster"
"h12.io/kpax/producer"
)

type Sender interface {
Expand Down
6 changes: 3 additions & 3 deletions producer/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"time"

"h12.me/kpax/log"
"h12.me/kpax/model"
"h12.me/kpax/proto"
"h12.io/kpax/log"
"h12.io/kpax/model"
"h12.io/kpax/proto"
)

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

"h12.me/kpax/model"
"h12.io/kpax/model"
)

type client struct {
Expand All @@ -24,7 +24,7 @@ func (c client) Do(req RequestMessage, resp ResponseMessage) error {
)
}

const clientID = "h12.me/kpax"
const clientID = "h12.io/kpax"

type Metadata string

Expand Down
8 changes: 4 additions & 4 deletions proto/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"
"time"

"h12.me/kpax/broker"
"h12.me/kpax/model"
"h12.me/realtest/kafka"
"h12.me/wipro"
"h12.io/kpax/broker"
"h12.io/kpax/model"
"h12.io/realtest/kafka"
"h12.io/wipro"
)

func TestTopicMetadata(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion proto/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/binary"

"github.com/golang/snappy"
"h12.me/wipro"
"h12.io/wipro"
)

func (m *Message) Compressed() bool {
Expand Down
2 changes: 1 addition & 1 deletion proto/marshal_auto.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proto

import (
"h12.me/wipro"
"h12.io/wipro"
"hash/crc32"
)

Expand Down
2 changes: 1 addition & 1 deletion proto/marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"h12.me/wipro"
"h12.io/wipro"
)

func TestUnmarshal(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion proto/offset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"h12.me/kpax/model"
"h12.io/kpax/model"
)

type GetTimeFunc func([]byte) (time.Time, error)
Expand Down
2 changes: 1 addition & 1 deletion proto/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"strconv"

"h12.me/wipro"
"h12.io/wipro"
)

type RequestMessage interface {
Expand Down
2 changes: 1 addition & 1 deletion proto/type_auto.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package proto

import "h12.me/wipro"
import "h12.io/wipro"

type RequestOrResponse struct {
Size int32
Expand Down
6 changes: 3 additions & 3 deletions spec/gen/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io"
"strings"

"h12.me/gs"
"h12.me/html-query"
"h12.me/html-query/expr"
"h12.io/gs"
"h12.io/html-query"
"h12.io/html-query/expr"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion spec/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"h12.me/wipro/gen"
"h12.io/wipro/gen"
)

const packageName = "proto"
Expand Down

0 comments on commit 07ad8dd

Please sign in to comment.