adjust API

This commit is contained in:
Chris Lu
2020-04-18 11:45:57 -07:00
parent 11f5a6d913
commit 5af49c7aa5
5 changed files with 159 additions and 79 deletions

View File

@@ -0,0 +1,14 @@
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
}