mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 10:08:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			390 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			390 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package webhooks
 | |
| 
 | |
| import (
 | |
| 	"github.com/owncast/owncast/core/data"
 | |
| 	"github.com/owncast/owncast/models"
 | |
| )
 | |
| 
 | |
| func SendStreamStatusEvent(eventType models.EventType) {
 | |
| 	SendEventToWebhooks(WebhookEvent{
 | |
| 		Type: eventType,
 | |
| 		EventData: map[string]interface{}{
 | |
| 			"name":        data.GetServerName(),
 | |
| 			"summary":     data.GetServerSummary(),
 | |
| 			"streamTitle": data.GetStreamTitle(),
 | |
| 		},
 | |
| 	})
 | |
| }
 | 
