You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							29 lines
						
					
					
						
							624 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							29 lines
						
					
					
						
							624 B
						
					
					
				
								package kafka
							 | 
						|
								
							 | 
						|
								import (
							 | 
						|
									"github.com/seaweedfs/seaweedfs/weed/glog"
							 | 
						|
									"github.com/seaweedfs/seaweedfs/weed/notification"
							 | 
						|
									"github.com/seaweedfs/seaweedfs/weed/util"
							 | 
						|
									"google.golang.org/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, prefix string) (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
							 | 
						|
								}
							 |