{"id":21003298,"url":"https://github.com/koding/rabbitapi","last_synced_at":"2025-08-08T14:11:52.113Z","repository":{"id":8285071,"uuid":"9822639","full_name":"koding/rabbitapi","owner":"koding","description":"Implementation of RabbitMq Management HTTP Api in Go","archived":false,"fork":false,"pushed_at":"2016-08-01T11:12:18.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-06-19T06:48:31.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/koding.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":"2013-05-02T21:04:30.000Z","updated_at":"2018-10-05T15:19:27.000Z","dependencies_parsed_at":"2022-09-13T18:52:32.767Z","dependency_job_id":null,"html_url":"https://github.com/koding/rabbitapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Frabbitapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Frabbitapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Frabbitapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koding%2Frabbitapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koding","download_url":"https://codeload.github.com/koding/rabbitapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225318278,"owners_count":17455576,"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":[],"created_at":"2024-11-19T08:24:40.348Z","updated_at":"2024-11-19T08:24:40.941Z","avatar_url":"https://github.com/koding.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rabbitapi\n\nImplementation of [RabbitMq Management HTTP\nApi](http://hg.rabbitmq.com/rabbitmq-management/raw-file/rabbitmq_v3_1_0/priv/www/api/index.html)\nin Go. Alpha status.\n\nFor more information and documenation please read [Godoc RabbitApi\npage](http://godoc.org/github.com/koding/rabbitapi)\n\n# setup\n\n```\ngo get github.com/koding/rabbitapi\n```\n\n# example usage\n\nFirst create a rabbitapi instance with your api credentials\n\n```\nr := rabbitapi.Auth(\"guest\", \"guest\", \"http://localhost:15672\")\n```\n\nTo get a list of all vhosts\n\n```\nvhosts, err := r.GetVhosts()\nif err != nil {\n\tfmt.Println(err)\n} else {\n\tfmt.Println(\"vhosts:\", vhosts)\n}\n```\n\nCreate an exchange on vhost `/` with the name `rabbitapi`, `durable=false`,\n`autoDelete=true`, `internal=false,` and `arguments=nil`\n\n```\nerr = r.CreateExchange(\"/\", \"rabbitapi\", \"topic\", false, true, false, nil)\nif err != nil {\n\tfmt.Println(err)\n}\n```\n\nGet an exchange we created previously on the vhost `/`\n\n```\nexchange, err := r.GetExchange(\"/\", \"rabbitapi\")\nif err != nil {\n\tfmt.Println(err)\n}\nfmt.Println(exchange) // exchange.Type is 'topic'\n```\n\nfor more examples look into `*_test.go` files.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Frabbitapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoding%2Frabbitapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoding%2Frabbitapi/lists"}