Hi folk,
Usage is pretty simple :
criteria := &Criteria{Alias: []string{"seb", "bob"}}
message := &Message{Alert: "hello from #golang sender"}
unifiedMessage := &UnifiedMessage{Message: *message, Criteria: *criteria}
settings := &Settings{
URL: "https://mypushserver.com/ag-push",
ApplicationID: "58f87fb7-829c-4c6f-a0eb-326d3017a94c",
MasterSecret: "3366736b-d52c-4115-87d3-c08095e87955"}
sender := NewSender(*settings)
sender.send(*unifiedMessage)
Since, I'm a newbie on Go, PRs are mote than welcome to polish the code or remove any anti-Go-patterns I could have used ;)
I still need to implement Proxy and Truststore support and add more test but I think it's a good start.
Sebi