{"modulePath":"github.com/lightsofapollo/taskcluster-proxy","version":"v5.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Types\n\n```go\ntype CredentialsUpdate struct {\n\tClientID    string `json:\"clientId\"`\n\tAccessToken string `json:\"accessToken\"`\n\tCertificate string `json:\"certificate\"`\n}\n```\nCredentialsUpdate is the internal representation of the json body which is used to update the internal client credentials\n\n```go\ntype Routes struct {\n\tRootURL string\n\ttcclient.Client\n\t// contains filtered or unexported fields\n}\n```\nRoutes represents the context of the running service\n\n```go\nfunc NewRoutes(rootURL string, client tcclient.Client) Routes\n```\nNewRoutes creates a new Routes instance.\n\n```go\nfunc ParseCommandArgs(argv []string, exit bool) (routes Routes, address string, err error)\n```\nParseCommandArgs converts command line arguments into a configured Routes and port.\n\n```go\nfunc (routes *Routes) APIHandler(res http.ResponseWriter, req *http.Request)\n```\nAPIHandler is the HTTP Handler for /api endpoint\n\n```go\nfunc (routes *Routes) BewitHandler(res http.ResponseWriter, req *http.Request)\n```\nBewitHandler is the http handler that provides Hawk signed urls (bewits)\n\n```go\nfunc (routes *Routes) CredentialsHandler(res http.ResponseWriter, req *http.Request)\n```\nCredentialsHandler is the HTTP Handler for serving the /credentials endpoint\n\n```go\nfunc (routes *Routes) RootHandler(res http.ResponseWriter, req *http.Request)\n```\nRootHandler is the HTTP Handler for / endpoint\n\n","path":"github.com/lightsofapollo/taskcluster-proxy","name":"main","synopsis":"","isRedistributable":true}
