seaweedfs/weed/notification/message_queue.go

15 lines
393 B
Go
Raw Normal View History

2018-09-16 08:18:30 +00:00
package notification
2018-08-13 08:20:49 +00:00
import (
"github.com/chrislusf/seaweedfs/weed/util"
2018-08-19 22:18:37 +00:00
"github.com/golang/protobuf/proto"
)
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
Initialize(configuration util.Configuration) error
2018-08-13 08:20:49 +00:00
SendMessage(key string, message proto.Message) error
}