2018-08-13 08:20:49 +00:00
|
|
|
package msgqueue
|
|
|
|
|
2018-08-19 22:17:55 +00:00
|
|
|
import (
|
|
|
|
"github.com/chrislusf/seaweedfs/weed/util"
|
2018-08-19 22:18:37 +00:00
|
|
|
"github.com/golang/protobuf/proto"
|
2018-08-19 22:17:55 +00:00
|
|
|
)
|
2018-08-13 08:20:49 +00:00
|
|
|
|
|
|
|
type MessageQueue interface {
|
|
|
|
// GetName gets the name to locate the configuration in message_queue.toml file
|
|
|
|
GetName() string
|
|
|
|
// Initialize initializes the file store
|
2018-08-19 22:17:55 +00:00
|
|
|
Initialize(configuration util.Configuration) error
|
2018-08-13 08:20:49 +00:00
|
|
|
SendMessage(key string, message proto.Message) error
|
|
|
|
}
|