Browse Source

move go client out

pull/1293/head
Chris Lu 5 years ago
parent
commit
ef1274edc9
  1. 11
      weed/messaging/client/client.go
  2. 14
      weed/messaging/client/publisher.go
  3. 14
      weed/messaging/client/subscriber.go

11
weed/messaging/client/client.go

@ -1,11 +0,0 @@
package client
type MessagingClient struct {
bootstrapBrokers []string
}
func NewMessagingClient(bootstrapBrokers []string) *MessagingClient {
return &MessagingClient{
bootstrapBrokers: bootstrapBrokers,
}
}

14
weed/messaging/client/publisher.go

@ -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
}

14
weed/messaging/client/subscriber.go

@ -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
}
Loading…
Cancel
Save