{"id":18345254,"url":"https://github.com/hunter-ji/kong-gateway-go-sdk","last_synced_at":"2026-01-12T02:04:39.805Z","repository":{"id":105931835,"uuid":"318083392","full_name":"hunter-ji/kong-gateway-go-sdk","owner":"hunter-ji","description":"Use golang to encapsulate kong gateway api.","archived":false,"fork":false,"pushed_at":"2020-12-10T14:00:00.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T03:03:19.178Z","etag":null,"topics":["gateway-api","golang","kong","kong-api","kong-api-gateway","kong-gateway","sdk","sdk-go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hunter-ji.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,"governance":null}},"created_at":"2020-12-03T05:18:35.000Z","updated_at":"2024-09-30T00:08:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"85e7ef22-ec39-4cdf-9796-ec5d76d89fa5","html_url":"https://github.com/hunter-ji/kong-gateway-go-sdk","commit_stats":null,"previous_names":["hunter-ji/kong-gateway-go-sdk","kuari/kong-gateway-go-sdk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hunter-ji/kong-gateway-go-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-gateway-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-gateway-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-gateway-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-gateway-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunter-ji","download_url":"https://codeload.github.com/hunter-ji/kong-gateway-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunter-ji%2Fkong-gateway-go-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gateway-api","golang","kong","kong-api","kong-api-gateway","kong-gateway","sdk","sdk-go"],"created_at":"2024-11-05T21:07:37.888Z","updated_at":"2026-01-12T02:04:39.754Z","avatar_url":"https://github.com/hunter-ji.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kong-gateway-go-sdk\n\n\n\n## Intro\n\nUse the api of kong gateway encapsulated by golang.The function is under development.\n\n\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\tgatewayGoSdk \"github.com/Kuari/kong-gateway-go-sdk\"\n)\n\nfunc main() {\n\n\t// Connect the gateway\n\tclient := gatewayGoSdk.Connect(os.Getenv(\"KONG_URL\"))\n\n\t// Add a Service\n\terr := client.Services(\u0026gatewayGoSdk.Services{Name: \"example_service\", Url: \"http://mockbin.org\"}).Add()\n\tif err != nil {\n\t\tpanic(\"Failed to add services.\")\n\t}\n\n\t// Add a Route\n\terr = client.Route(\u0026gatewayGoSdk.Route{\n\t\tName: \"mocking\", Paths: []string{\"/mock\"}, Service: map[string]string{\"name\": \"mockServices\"}}).Add()\n\tif err != nil {\n\t\tpanic(\"Failed to add route.\")\n\t}\n\n\t// Add a Consumer\n\terr = client.Consumer(\u0026gatewayGoSdk.Consumer{Username: \"tom\", CustomId: \"tom_id\"}).Add()\n\tif err != nil {\n\t\tpanic(\"Failed to add consumer.\")\n\t}\n\n}\n```\n\n\n\n## Features\n\nThe currently completed functions are as follows:\n\n| Module                  | Method                |\n| ----------------------- | --------------------- |\n| Services                | `Add`                 |\n| Consumer                | `Add`                 |\n| PluginKeyAuthentication | `CreateKey`、`DelKey` |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fkong-gateway-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunter-ji%2Fkong-gateway-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-ji%2Fkong-gateway-go-sdk/lists"}