File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 33database :
44  url : " postgresql://username:password@localhost:5432/dbname" 
55sendgrid :
6-   api_key : " YOUR_SENDGRID_API_KEY" 
6+   api_key : " YOUR_SENDGRID_API_KEY" 
7+ push_notification :
8+   provider : " firebase"   #  or other provider
9+   api_key : " YOUR_PUSH_NOTIFICATION_API_KEY" 
Original file line number Diff line number Diff line change 1+ // services/push_notification.go 
2+ package  services
3+ 
4+ import  "github.com/Jetlum/WalletAlertService/models" 
5+ 
6+ type  PushNotifier  interface  {
7+ 	Send (event  * models.Event , userPref  * models.UserPreference ) error 
8+ }
9+ 
10+ type  PushNotification  struct  {
11+ 	// Firebase or other push service configuration 
12+ }
13+ 
14+ func  NewPushNotification (config  Config ) * PushNotification  {
15+ 	return  & PushNotification {
16+ 		// Initialize push service 
17+ 	}
18+ }
19+ 
20+ func  (pn  * PushNotification ) Send (event  * models.Event , userPref  * models.UserPreference ) error  {
21+ 	// Implement push notification sending 
22+ 	return  nil 
23+ }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments