Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
RootURL string
}
Services can convert urls to proxied urls
func NewServices ¶
NewServices create a Service with default domain
func (*Services) ConvertPath ¶
ConvertPath converts a url for the proxy server into a url for the proper taskcluster service on the given rootURL
Examples:
"/queue/v1/stuff" -> "http://tc.example.com/api/queue/v1/stuff" "/myserver.com/v1/stuff" -> "http://myserver.com/v1/stuff" "/api/queue/v1/stuff" => "http://tc.example.com/api/queue/v1/stuff"
Click to show internal directories.
Click to hide internal directories.