Files
omv-dijiang/works/patch/option/mysql.go.patch
T
2026-03-05 13:50:31 +08:00

27 lines
710 B
Diff

--- /dev/null
+++ b/option/mysql.go
@@ -0,0 +1,23 @@
+// OMV
+package option
+
+type MySQLInboundOptions struct {
+ ListenOptions
+ InboundTLSOptionsContainer
+ Users []MySQLUser `json:"users,omitempty"`
+ Multiplex *InboundMultiplexOptions `json:"multiplex,omitempty"`
+}
+
+type MySQLUser struct {
+ User string `json:"user,omitempty"`
+ Password string `json:"password,omitempty"`
+}
+
+type MySQLOutboundOptions struct {
+ DialerOptions
+ ServerOptions
+ OutboundTLSOptionsContainer
+ Username string `json:"username,omitempty"`
+ Password string `json:"password,omitempty"`
+ Multiplex *OutboundMultiplexOptions `json:"multiplex,omitempty"`
+}