mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	[chore] Deinterface processor and subprocessors (#1501)
* [chore] Deinterface processor and subprocessors * expose subprocessors via function calls * missing license header
This commit is contained in:
		
					parent
					
						
							
								adb596600b
							
						
					
				
			
			
				commit
				
					
						b6fbdc66c1
					
				
			
		
					 246 changed files with 2545 additions and 4549 deletions
				
			
		|  | @ -49,7 +49,7 @@ import ( | |||
| ) | ||||
| 
 | ||||
| type Client struct { | ||||
| 	processor processing.Processor | ||||
| 	processor *processing.Processor | ||||
| 	db        db.DB | ||||
| 
 | ||||
| 	accounts       *accounts.Module       // api/v1/accounts | ||||
|  | @ -110,7 +110,7 @@ func (c *Client) Route(r router.Router, m ...gin.HandlerFunc) { | |||
| 	c.user.Route(h) | ||||
| } | ||||
| 
 | ||||
| func NewClient(db db.DB, p processing.Processor) *Client { | ||||
| func NewClient(db db.DB, p *processing.Processor) *Client { | ||||
| 	return &Client{ | ||||
| 		processor: p, | ||||
| 		db:        db, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue