# README
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.
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
# Packages
No description provided by the author
# Functions
New creates a new API client.
# Structs
Client holds the configuration for 20190715 version API client.
Metadata is the structure of getting all metadata endpoint.
MetadataConfig is the structure of the configuration of metadata.
MetadataNode is the structure of metadata of a node.
MetadataResponse is the response of getting all metadata endpoint.
MetadataStatus is the structure of the information of metadata.
No description provided by the author
RouteConnections is the structure of the information of the connection of route.
RouteConnectionsResponse is the response of getting the information of route connection endpoint.
RouteDestinations is the structure of destination of the route.
RouteDestinationsResponse is the response of getting the information of the route destination endpoint.
RouteHealth is the structure of health check of the route.
Router general information of MySQL Router.
Routes is the response of getting all routes endpoint.
RoutesResponse is the response of getting all routes endpoint.
RouteStatus is the state of the route.