mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 18:02:25 -05:00 
			
		
		
		
	start messing about with streaming api
This commit is contained in:
		
					parent
					
						
							
								82d9f88e42
							
						
					
				
			
			
				commit
				
					
						0cee5aa569
					
				
			
		
					 9 changed files with 241 additions and 2 deletions
				
			
		
							
								
								
									
										15
									
								
								internal/processing/streaming.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								internal/processing/streaming.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | |||
| package processing | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/gorilla/websocket" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| ) | ||||
| 
 | ||||
| func (p *processor) AuthorizeStreamingRequest(accessToken string) (*gtsmodel.Account, error) { | ||||
| 	return p.streamingProcessor.AuthorizeStreamingRequest(accessToken) | ||||
| } | ||||
| 
 | ||||
| func (p *processor) StreamForAccount(c *websocket.Conn, account *gtsmodel.Account, streamType string) gtserror.WithCode { | ||||
| 	return p.streamingProcessor.StreamForAccount(c, account, streamType) | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue