27 lines
710 B
Diff
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"`
|
|
+}
|