From ef1274edc9f0397ca0b59d609789b41547180940 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 18 Apr 2020 12:11:50 -0700 Subject: [PATCH] move go client out --- weed/messaging/client/client.go | 11 ----------- weed/messaging/client/publisher.go | 14 -------------- weed/messaging/client/subscriber.go | 14 -------------- 3 files changed, 39 deletions(-) delete mode 100644 weed/messaging/client/client.go delete mode 100644 weed/messaging/client/publisher.go delete mode 100644 weed/messaging/client/subscriber.go diff --git a/weed/messaging/client/client.go b/weed/messaging/client/client.go deleted file mode 100644 index 9bf9bc71e..000000000 --- a/weed/messaging/client/client.go +++ /dev/null @@ -1,11 +0,0 @@ -package client - -type MessagingClient struct { - bootstrapBrokers []string -} - -func NewMessagingClient(bootstrapBrokers []string) *MessagingClient { - return &MessagingClient{ - bootstrapBrokers: bootstrapBrokers, - } -} diff --git a/weed/messaging/client/publisher.go b/weed/messaging/client/publisher.go deleted file mode 100644 index 3e21cc557..000000000 --- a/weed/messaging/client/publisher.go +++ /dev/null @@ -1,14 +0,0 @@ -package client - -import "github.com/chrislusf/seaweedfs/weed/pb/messaging_pb" - -type Publisher struct { -} - -func (c *MessagingClient) NewPublisher(namespace, topic string) *Publisher { - return &Publisher{} -} - -func (p *Publisher) Publish(m *messaging_pb.RawData) error{ - return nil -} diff --git a/weed/messaging/client/subscriber.go b/weed/messaging/client/subscriber.go deleted file mode 100644 index 55101a283..000000000 --- a/weed/messaging/client/subscriber.go +++ /dev/null @@ -1,14 +0,0 @@ -package client - -import "github.com/chrislusf/seaweedfs/weed/pb/messaging_pb" - -type Subscriber struct { -} - -func (c *MessagingClient) NewSubscriber(namespace, topic string) *Subscriber { - return &Subscriber{} -} - -func (p *Subscriber) Subscribe(processFn func(m *messaging_pb.Message)) error{ - return nil -}