add internal/{processor,streaming}
This commit is contained in:
		
							parent
							
								
									6f17b59a47
								
							
						
					
					
						commit
						5c6da51234
					
				
					 6 changed files with 128 additions and 29 deletions
				
			
		
							
								
								
									
										27
									
								
								internal/processor/processor.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								internal/processor/processor.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| package processor | ||||
| 
 | ||||
| import ( | ||||
| 	"git.sleepycat.moe/sam/mercury/internal/database" | ||||
| 	"git.sleepycat.moe/sam/mercury/internal/database/sql" | ||||
| 	"git.sleepycat.moe/sam/mercury/internal/streaming" | ||||
| ) | ||||
| 
 | ||||
| type Processor struct { | ||||
| 	SocketHolder *streaming.SocketHolder | ||||
| 
 | ||||
| 	db *sql.Base | ||||
| } | ||||
| 
 | ||||
| func New(db *sql.Base) *Processor { | ||||
| 	p := &Processor{ | ||||
| 		SocketHolder: &streaming.SocketHolder{}, | ||||
| 
 | ||||
| 		db: db, | ||||
| 	} | ||||
| 
 | ||||
| 	return p | ||||
| } | ||||
| 
 | ||||
| func (p *Processor) HandlePost(post database.Post) { | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue