/mysqlrouter-go

client for mysql-router

Primary LanguageGoApache License 2.0Apache-2.0

mysqlrouter-go

Build Status

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.

Usage

mysqlrouter.New("http://localhost:8080", "luis", "luis", nil)

See example and client_test.go

Supported endpoint

server

  • HTTPS with verify

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

Developer

$ cd test && make local