mysqlflex

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mysqlflex implements the Azure Database for MySQL — Flexible Server (Microsoft.DBforMySQL/flexibleServers) ARM REST API as a server.Handler. Real github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysqlflexibleservers clients configured with a custom endpoint hit this handler the same way they hit management.azure.com.

MVP coverage:

PUT    .../providers/Microsoft.DBforMySQL/flexibleServers/{name}          — Create
GET    .../providers/Microsoft.DBforMySQL/flexibleServers/{name}          — Get
PATCH  .../providers/Microsoft.DBforMySQL/flexibleServers/{name}          — Update
DELETE .../providers/Microsoft.DBforMySQL/flexibleServers/{name}          — Delete
GET    .../providers/Microsoft.DBforMySQL/flexibleServers                 — List
POST   .../providers/Microsoft.DBforMySQL/flexibleServers/{name}/start    — Start
POST   .../providers/Microsoft.DBforMySQL/flexibleServers/{name}/stop     — Stop
POST   .../providers/Microsoft.DBforMySQL/flexibleServers/{name}/restart  — Restart

Mutating ops return 200 OK with the resource body inline so the SDK's LRO poller terminates on the first response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler serves Microsoft.DBforMySQL/flexibleServers ARM requests against a relationaldb driver.

func New

New returns a MySQL Flexible Server handler backed by db.

func (*Handler) Matches

func (*Handler) Matches(r *http.Request) bool

Matches returns true for ARM Microsoft.DBforMySQL/flexibleServers paths.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP routes the request based on path shape and method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL