https://github.com/rluisr/mysqlrouter-go
client for mysql-router
https://github.com/rluisr/mysqlrouter-go
client go mysql mysql-router sdk
Last synced: 5 months ago
JSON representation
client for mysql-router
- Host: GitHub
- URL: https://github.com/rluisr/mysqlrouter-go
- Owner: rluisr
- License: apache-2.0
- Created: 2019-08-14T08:19:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T12:15:29.000Z (over 2 years ago)
- Last Synced: 2024-06-21T08:13:36.921Z (about 2 years ago)
- Topics: client, go, mysql, mysql-router, sdk
- Language: Go
- Homepage:
- Size: 61.5 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
mysqlrouter-go
==============
[](https://cloud.drone.io/rluisr/mysqlrouter-go)
client for getting mysql-router information.
Supported version
-----------------
- 20190715 (8.0.17 - 8.0.34 / 8.1.0)
Enable HTTP Server and REST API
-------------------------------
See [MySQL Router 8.0.17 and the REST API by lefred](https://lefred.be/content/mysqlrouter-8-0-17-and-the-rest-api/).
Usage
-----
```go
mysqlrouter.New("http://localhost:8080", "luis", "luis", nil)
```
See [example](example/main.go) and [client_test.go](client_test.go)
Supported endpoint
-------------------
### server
- [x] HTTPS with verify
### cluster
- [x] /metadata
- [x] /metadata/metadata_name/config
- [x] /metadata/metadata_name/status
### app
- [x] /router/status
### route
- [x] /routes
- [x] /routes/route_name/status
- [x] /routes/route_name/health
- [x] /routes/route_name/destinations
- [x] /routes/route_name/connections
Developer
---------
```shell
$ cd test && make local
```