{"id":18673074,"url":"https://github.com/vicanso/upstream","last_synced_at":"2025-09-11T01:32:57.207Z","repository":{"id":57486410,"uuid":"170507743","full_name":"vicanso/upstream","owner":"vicanso","description":"proxy upstream","archived":false,"fork":false,"pushed_at":"2023-02-14T12:24:55.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T19:44:31.625Z","etag":null,"topics":["http","ping","upstream"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vicanso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-13T12:53:30.000Z","updated_at":"2022-03-18T02:14:33.000Z","dependencies_parsed_at":"2022-09-01T22:31:28.645Z","dependency_job_id":null,"html_url":"https://github.com/vicanso/upstream","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fupstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fupstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fupstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vicanso%2Fupstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vicanso","download_url":"https://codeload.github.com/vicanso/upstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239513379,"owners_count":19651322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","ping","upstream"],"created_at":"2024-11-07T09:13:55.166Z","updated_at":"2025-02-18T16:49:07.070Z","avatar_url":"https://github.com/vicanso.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# upstream\n\n[![Build Status](https://github.com/vicanso/upstream/workflows/Test/badge.svg)](https://github.com/upstream/elton/actions)\n\n\nIt's easy to get upstream from upstream list. It support http request check or tcp port check.\n\n\n```go\nuh := upstream.HTTP{\n  // use http request check\n  Ping: \"/ping\",\n}\nuh.OnStatus(func(status int32, upstream *upstream.HTTPUpstream) {\n})\nuh.Add(\"http://127.0.0.1:7001\")\nuh.AddBackup(\"http://127.0.0.1:7002\")\n// do health check\nuh.DoHealthCheck()\n// do health check loop(default interval: 5s )\ngo uh.StartHealthCheck()\n// get valid upstream by round robin\nupstream := uh.PolicyRoundRobin()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicanso%2Fupstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvicanso%2Fupstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvicanso%2Fupstream/lists"}