mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 13:08:52 +08:00
renaming msgqueue to notification
This commit is contained in:
29
weed/notification/log/log_queue.go
Normal file
29
weed/notification/log/log_queue.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package kafka
|
||||
|
||||
import (
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
"github.com/chrislusf/seaweedfs/weed/notification"
|
||||
"github.com/chrislusf/seaweedfs/weed/util"
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
func init() {
|
||||
notification.MessageQueues = append(notification.MessageQueues, &LogQueue{})
|
||||
}
|
||||
|
||||
type LogQueue struct {
|
||||
}
|
||||
|
||||
func (k *LogQueue) GetName() string {
|
||||
return "log"
|
||||
}
|
||||
|
||||
func (k *LogQueue) Initialize(configuration util.Configuration) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (k *LogQueue) SendMessage(key string, message proto.Message) (err error) {
|
||||
|
||||
glog.V(0).Infof("%v: %+v", key, message)
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user