package alerts import "net/http" // QueueSize is the most alerts that wait to be sent to a destination. const QueueSize = queueSize // SetTransport has q's requests to the destination name go through // transport instead of the network. func (q *Queue) SetTransport(name string, transport http.RoundTripper) { for _, d := range q.destinations { if d.name == name { d.httpClient.Transport = transport } } }