mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 05:12:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			891 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			891 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package gtsmodel
 | |
| 
 | |
| // ToClientAPI wraps a message that travels from the processor into the client API
 | |
| type ToClientAPI struct {
 | |
| 	APObjectType   ActivityStreamsObject
 | |
| 	APActivityType ActivityStreamsActivity
 | |
| 	Activity       interface{}
 | |
| }
 | |
| 
 | |
| // FromClientAPI wraps a message that travels from client API into the processor
 | |
| type FromClientAPI struct {
 | |
| 	APObjectType   ActivityStreamsObject
 | |
| 	APActivityType ActivityStreamsActivity
 | |
| 	Activity       interface{}
 | |
| }
 | |
| 
 | |
| // ToFederator wraps a message that travels from the processor into the federator
 | |
| type ToFederator struct {
 | |
| 	APObjectType   ActivityStreamsObject
 | |
| 	APActivityType ActivityStreamsActivity
 | |
| 	Activity       interface{}
 | |
| }
 | |
| 
 | |
| // FromFederator wraps a message that travels from the federator into the processor
 | |
| type FromFederator struct {
 | |
| 	APObjectType   ActivityStreamsObject
 | |
| 	APActivityType ActivityStreamsActivity
 | |
| 	Activity       interface{}
 | |
| }
 |