18 lines
462 B
Go
18 lines
462 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
"time"
|
|
)
|
|
|
|
// ValidateChannelOutboundURL keeps all provider channels on the server-side
|
|
// outbound policy. Local desktop endpoints are intentionally unsupported.
|
|
func (s *Service) ValidateChannelOutboundURL(rawURL string) (*url.URL, error) {
|
|
return ValidateOutboundURL(rawURL)
|
|
}
|
|
|
|
func (s *Service) OutboundHTTPClientForChannel(timeout time.Duration, _ *url.URL) *http.Client {
|
|
return OutboundHTTPClient(timeout)
|
|
}
|