mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
move go client out
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
package client
|
||||
|
||||
type MessagingClient struct {
|
||||
bootstrapBrokers []string
|
||||
}
|
||||
|
||||
func NewMessagingClient(bootstrapBrokers []string) *MessagingClient {
|
||||
return &MessagingClient{
|
||||
bootstrapBrokers: bootstrapBrokers,
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -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
|
||||
}
|
Reference in New Issue
Block a user