Skip to content

Commit

Permalink
update module name
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfan committed Jun 19, 2019
1 parent 0165c5b commit 105ffdc
Show file tree
Hide file tree
Showing 62 changed files with 188 additions and 170 deletions.
8 changes: 4 additions & 4 deletions admin/Admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
package admin

import (
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/quota"
"talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/quota"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
)

type Admin interface {
Expand Down
14 changes: 7 additions & 7 deletions admin/TalosAdmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ package admin
import (
"strings"

"talos-sdk-golang/client"
"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/quota"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/quota"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"
)

type TalosAdmin struct {
Expand Down
6 changes: 3 additions & 3 deletions client/ScheduleInfoCache.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"sync"
"time"

"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion client/SimpleTopicAbnormalCallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package client

import (
"talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion client/TalosClientConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package client
import (
"strconv"

"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/utils"
)

type TalosClientConfig struct {
Expand Down
14 changes: 7 additions & 7 deletions client/TalosClientFactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
"runtime"
"time"

"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/common"
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/quota"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/common"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/quota"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

"git.apache.org/thrift.git/lib/go/thrift"
)
Expand Down
2 changes: 1 addition & 1 deletion client/TalosErrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package client
import (
"fmt"

"talos-sdk-golang/thrift/common"
"github.com/XiaoMi/talos-sdk-golang/thrift/common"
)

type TalosErrorCodePeeker interface {
Expand Down
4 changes: 2 additions & 2 deletions client/TalosHttpClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import (
"strings"
"time"

"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/common"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/common"

"git.apache.org/thrift.git/lib/go/thrift"
"github.com/gofrs/uuid"
Expand Down
2 changes: 1 addition & 1 deletion client/TopicAbnormalCallback.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package client

import (
"talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
)

type TopicAbnormalCallback interface {
Expand Down
6 changes: 3 additions & 3 deletions client/compression/Compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"fmt"
"io/ioutil"

"talos-sdk-golang/client/serialization"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client/serialization"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/utils"

"github.com/eapache/go-xerial-snappy"
)
Expand Down
2 changes: 1 addition & 1 deletion client/serialization/MessageSerialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package serialization
import (
"bytes"

"talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion client/serialization/MessageSerializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"encoding/binary"
"fmt"

"talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
)

type MessageSerializer interface {
Expand Down
2 changes: 1 addition & 1 deletion client/serialization/MessageSerializerV1.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"bytes"
"encoding/binary"

"talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"

log "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions client/serialization/MessageSerializerV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"encoding/binary"
"fmt"

"talos-sdk-golang/thrift/message"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions client/serialization/MessageSerializerV3.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"bytes"
"encoding/binary"

"talos-sdk-golang/thrift/message"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion consumer/MessageProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package consumer

import (
"talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
)

type MessageProcessor interface {
Expand Down
9 changes: 4 additions & 5 deletions consumer/MessageReader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import (
"sync/atomic"
"time"

"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/topic"

"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
10 changes: 5 additions & 5 deletions consumer/PartitionFetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"sync"
"sync/atomic"

"talos-sdk-golang/client"
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
12 changes: 6 additions & 6 deletions consumer/SimpleConsumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"strconv"
"sync/atomic"

"talos-sdk-golang/client"
"talos-sdk-golang/client/compression"
"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/client/compression"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
12 changes: 6 additions & 6 deletions consumer/TalosConsumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"sync"
"time"

"talos-sdk-golang/admin"
"talos-sdk-golang/client"
"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/thrift/topic"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/admin"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
4 changes: 2 additions & 2 deletions consumer/TalosConsumerConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package consumer
import (
"strconv"

"talos-sdk-golang/client"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
6 changes: 3 additions & 3 deletions consumer/TalosMessageReader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"sync/atomic"
"time"

"talos-sdk-golang/thrift/common"
"talos-sdk-golang/thrift/consumer"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/thrift/common"
"github.com/XiaoMi/talos-sdk-golang/thrift/consumer"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
16 changes: 7 additions & 9 deletions example/admin/TalosAdminDemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
package main

import (
"talos-sdk-golang/utils"

"talos-sdk-golang/admin"
"talos-sdk-golang/client"

"talos-sdk-golang/thrift/auth"
"talos-sdk-golang/thrift/authorization"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/admin"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/thrift/auth"
"github.com/XiaoMi/talos-sdk-golang/thrift/authorization"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/thrift/topic"
"github.com/XiaoMi/talos-sdk-golang/utils"

"git.apache.org/thrift.git/lib/go/thrift"
log "github.com/sirupsen/logrus"
Expand Down
6 changes: 3 additions & 3 deletions example/simple_consumer/TalosSimpleConsumerDemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"flag"
"time"

"talos-sdk-golang/consumer"
"talos-sdk-golang/thrift/common"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/common"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
10 changes: 5 additions & 5 deletions example/simple_consumer/simpleConsumer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# 【请注意】所有的 value 值都不要加双引号"", 请仿照e.g.以及Wiki链接填写
###############################################################

galaxy.talos.service.endpoint=
galaxy.talos.service.endpoint=http://staging-cnbj4-fusion-talos.api.xiaomi.net

galaxy.talos.topic.name=
galaxy.talos.topic.name=get_topic_offset

galaxy.talos.access.key=
galaxy.talos.access.key=AKKB5UEGSRJ3X63RTI

galaxy.talos.access.secret=
galaxy.talos.access.secret=lB262sFSMOFgKHs+ptLTtXr2Osr1azkvnmFYv6Oq

galaxy.talos.partition.id=
galaxy.talos.partition.id=1
6 changes: 3 additions & 3 deletions example/simple_producer/TalosSimpleProducerDemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"sync/atomic"
"time"

"talos-sdk-golang/producer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/producer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/utils"

"git.apache.org/thrift.git/lib/go/thrift"
log "github.com/sirupsen/logrus"
Expand Down
10 changes: 5 additions & 5 deletions example/simple_producer/simpleProducer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# 【请注意】所有的 value 值都不要加双引号"", 请仿照e.g.以及Wiki链接填写
###############################################################

galaxy.talos.service.endpoint=
galaxy.talos.service.endpoint=http://staging-cnbj4-fusion-talos.api.xiaomi.net

galaxy.talos.topic.name=
galaxy.talos.topic.name=get_topic_offset

galaxy.talos.access.key=
galaxy.talos.access.key=AKKB5UEGSRJ3X63RTI

galaxy.talos.access.secret=
galaxy.talos.access.secret=lB262sFSMOFgKHs+ptLTtXr2Osr1azkvnmFYv6Oq

galaxy.talos.partition.id=
galaxy.talos.partition.id=2
8 changes: 4 additions & 4 deletions example/talos_consumer/TalosConsumerDemo.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync/atomic"
"time"

"talos-sdk-golang/client"
"talos-sdk-golang/consumer"
"talos-sdk-golang/thrift/message"
"talos-sdk-golang/utils"
"github.com/XiaoMi/talos-sdk-golang/client"
"github.com/XiaoMi/talos-sdk-golang/consumer"
"github.com/XiaoMi/talos-sdk-golang/thrift/message"
"github.com/XiaoMi/talos-sdk-golang/utils"

log "github.com/sirupsen/logrus"
)
Expand Down
Loading

0 comments on commit 105ffdc

Please sign in to comment.