Skip to content
client for mysql-router
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.drone.yml
LICENSE
README.md
app.go
app_test.go
client.go
client_test.go
errors.go
go.mod
metadata.go
metadata_test.go
request.go
routes.go
routes_test.go

README.md

mysqlrouter-go

Build Status Coverage Status

client for getting mysql-router information.

Enable HTTP Server and REST API

See MySQL Router 8.0.17 and the REST API by lefred.

Usage

mr, err := mysqlrouter.New("https://mysqlrouter-test.xzy.pw", "luis", "luis")
routes, err := mr.GetAllRoutes()

See example

About mysqlrouter-test.xzy.pw

I provide MySQL Router 8.0.17 for testing.
You can access this domain with basic luis:luis and you can request only GET method.

Supported endpoint

cluster

  • /metadata
  • /metadata/metadata_name/config
  • /metadata/metadata_name/status

app

  • /router/status

route

  • /routes
  • /routes/route_name/status
  • /routes/route_name/health
  • /routes/route_name/destinations
  • /routes/route_name/connections
You can’t perform that action at this time.