Browse Source

first commit

lxz 1 tháng trước cách đây
commit
52f4a13d25
54 tập tin đã thay đổi với 3161 bổ sung0 xóa
  1. 10 0
      .idea/.gitignore
  2. 17 0
      .idea/dataSources.xml
  3. 13 0
      .idea/demo3.iml
  4. 12 0
      .idea/http-test/http-test.json
  5. 10 0
      .idea/inspectionProfiles/Project_Default.xml
  6. 8 0
      .idea/modules.xml
  7. 6 0
      .idea/vcs.xml
  8. 12 0
      auto.ipxe
  9. 59 0
      demo3.1/main.go
  10. BIN
      demo3.2/demo3.2.exe
  11. BIN
      demo3.2/ipxe.efi
  12. 114 0
      demo3.2/main.go
  13. 97 0
      demo3.3/main.go
  14. 37 0
      demo3.4/main.go
  15. 76 0
      demo3.5/main.go
  16. 42 0
      demo3.6/main.go
  17. 0 0
      demo3.7/DHCPtemplate.yaml
  18. 30 0
      demo3.7/main.go
  19. 22 0
      demo3.8/greeter.go
  20. 63 0
      demo3.8/main.go
  21. 10 0
      demo3.8/wire.go
  22. 16 0
      demo3.8/wire_gen.go
  23. 52 0
      demo3.9/main.go
  24. BIN
      demo4/demo4.exe
  25. 123 0
      demo4/main.go
  26. BIN
      demo4/snp.efi
  27. 17 0
      demo5/config.yaml
  28. 269 0
      demo5/main.go
  29. 65 0
      etcd/etcd-viper/main.go
  30. 57 0
      etcd/lock/test.go
  31. 138 0
      etcd/test.go
  32. 53 0
      etcd/txn/test.go
  33. 4 0
      filewatch/ipxe_template.json
  34. 86 0
      filewatch/main.go
  35. 136 0
      go.mod
  36. 704 0
      go.sum
  37. 57 0
      gorm/main.go
  38. 1 0
      log/app_2024-04-22-09-56-25.log
  39. 0 0
      log/app_2024-04-22-09-57-00.log
  40. 1 0
      log/app_2024-04-23-10-25-25.log
  41. 1 0
      log/app_2024-04-23-10-26-00.log
  42. 1 0
      log/app_2024-04-23-10-27-00.log
  43. 0 0
      log/app_2024-04-23-10-28-00.log
  44. 66 0
      logfile.log
  45. 100 0
      main.go
  46. 16 0
      pkg/log.go
  47. BIN
      qr.png
  48. 81 0
      rabbitmq/Consume/mainSimpleRecieve.go
  49. 42 0
      rabbitmq/Pub/mainSimlpePublish.go
  50. 158 0
      rabbitmq/RabbitMQ/entity.go
  51. 127 0
      rabbitmq/RabbitMQ/rabitmq.go
  52. 4 0
      rabbitmq/go-rabbitmq/main.go
  53. 141 0
      rabbitmq/go-rabbitmq/ra/test.go
  54. 7 0
      uploads/auto/auto.ipxe

+ 10 - 0
.idea/.gitignore

@@ -0,0 +1,10 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# GitHub Copilot persisted chat sessions
+/copilot/chatSessions

+ 17 - 0
.idea/dataSources.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
+    <data-source source="LOCAL" name="@106.54.33.152" uuid="1a2791d2-1d5b-4414-ace5-2673560f7246">
+      <driver-ref>mysql.8</driver-ref>
+      <synchronize>true</synchronize>
+      <jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
+      <jdbc-url>jdbc:mysql://106.54.33.152:33369</jdbc-url>
+      <jdbc-additional-properties>
+        <property name="com.intellij.clouds.kubernetes.db.host.port" />
+        <property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
+        <property name="com.intellij.clouds.kubernetes.db.container.port" />
+      </jdbc-additional-properties>
+      <working-dir>$ProjectFileDir$</working-dir>
+    </data-source>
+  </component>
+</project>

+ 13 - 0
.idea/demo3.iml

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="Go" enabled="true">
+    <buildTags>
+      <option name="cgo" value="YES" />
+    </buildTags>
+  </component>
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 12 - 0
.idea/http-test/http-test.json

@@ -0,0 +1,12 @@
+{
+  "enableAutoRestart": false,
+  "scanSuffix": "java,rs,kt,go,py",
+  "scanPath": "",
+  "fileSuffix": "java,rs,kt,go,py,md,zig",
+  "excludePath": ".idea,.gradle,.git,node_modules,build",
+  "bodyType": 0,
+  "enableDuplicate": true,
+  "prefixUrl": "",
+  "history": [],
+  "commonHeaderList": []
+}

+ 10 - 0
.idea/inspectionProfiles/Project_Default.xml

@@ -0,0 +1,10 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="GoDfaErrorMayBeNotNil" enabled="true" level="WARNING" enabled_by_default="true">
+      <functions>
+        <function importPath="net" name="ParseCIDR" />
+      </functions>
+    </inspection_tool>
+  </profile>
+</component>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/demo3.iml" filepath="$PROJECT_DIR$/.idea/demo3.iml" />
+    </modules>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 12 - 0
auto.ipxe

@@ -0,0 +1,12 @@
+#!ipxe
+dhcp
+
+set base-url http://example.com/images #请替换为镜像所在的HTTP文件服务器地址
+
+set ks-file http://example.com/scripts  # 替换为你的 Kickstart 文件所在的 HTTP 服务器地址
+
+set iso ubuntu.iso
+
+kernel ${base-url}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${base-url} ip=dhcp  ks=${ks-url}  # 指定 Kickstart 文件的位置和参数
+initrd ${base-url}/images/pxeboot/initrd.img
+boot

+ 59 - 0
demo3.1/main.go

@@ -0,0 +1,59 @@
+package main
+
+import (
+	"fmt"
+	"net"
+	"strconv"
+)
+
+// ipToInt 将IP地址转换为整数
+func ipToInt(ip net.IP) uint32 {
+	ip = ip.To4()
+	return uint32(ip[0])<<24 + uint32(ip[1])<<16 + uint32(ip[2])<<8 + uint32(ip[3])
+}
+
+// intToIP 将整数转换为IP地址
+func intToIP(n uint32) net.IP {
+	return net.IPv4(byte(n>>24), byte(n>>16), byte(n>>8), byte(n))
+}
+
+// generateIPs 生成从startIP到endIP的所有IP地址
+func generateIPs(startIP, endIP string) ([]string, error) {
+	start := net.ParseIP(startIP)
+	end := net.ParseIP(endIP)
+	if start == nil || end == nil {
+		return nil, fmt.Errorf("invalid IP address")
+	}
+
+	startInt := ipToInt(start)
+	endInt := ipToInt(end)
+
+	if startInt > endInt {
+		return nil, fmt.Errorf("start IP must be less than or equal to end IP")
+	}
+
+	var ips []string
+	for ip := startInt; ip <= endInt; ip++ {
+		ips = append(ips, intToIP(ip).String())
+	}
+	return ips, nil
+}
+
+func main() {
+	startIP := "10.10.1.200"
+	endIP := "10.10.2.50"
+	_, ipNet, err := net.ParseCIDR("10.10.1.1/22")
+	if err != nil {
+		panic(err)
+	}
+	fmt.Println(strconv.Itoa(int(ipNet.Mask[0])) + "." + strconv.Itoa(int(ipNet.Mask[1])) + "." + strconv.Itoa(int(ipNet.Mask[2])) + "." + strconv.Itoa(int(ipNet.Mask[3])))
+	ips, err := generateIPs(startIP, endIP)
+	if err != nil {
+		fmt.Println("Error:", err)
+		return
+	}
+
+	for _, ip := range ips {
+		fmt.Println(ip)
+	}
+}

BIN
demo3.2/demo3.2.exe


BIN
demo3.2/ipxe.efi


+ 114 - 0
demo3.2/main.go

@@ -0,0 +1,114 @@
+/*
+package main
+
+import (
+
+	"demo3/pkg"
+	"github.com/bougou/go-ipmi"
+	"go.uber.org/zap"
+
+)
+
+	func main() {
+		pkg.InitLog()
+		host := "127.0.0.1"
+		port := 623
+		username := "admin"
+		password := "password"
+
+		client, err := ipmi.NewClient(host, port, username, password)
+		// Support local mode client if runs directly on linux
+		// client, err := ipmi.NewOpenClient()
+		if err != nil {
+			zap.S().Infof("err: %v", err)
+			return
+		}
+
+		// you can optionally open debug switch
+		// client.WithDebug(true)
+
+		// Connect will create an authenticated session for you.
+		if err := client.Connect(); err != nil {
+			zap.S().Infof("err: %v", err)
+			return
+		}
+		defer client.Close()
+
+		//冷重启
+		err = client.ColdReset()
+		//热重启
+		err = client.WarmReset()
+		////将计算机系统关机或关闭电源,将系统置于关机状态
+		//response, err := client.ChassisControl(ipmi.ChassisControlPowerDown)
+		//// 将计算机系统开机或上电,将系统置于开机状态
+		//response, err = client.ChassisControl(ipmi.ChassisControlPowerUp)
+		//// 将计算机系统关闭电源,然后再上电,将系统置于开机状态
+		//response, err = client.ChassisControl(ipmi.ChassisControlPowerCycle)
+		//// 执行硬件重置,可能涉及到主板或其他硬件组件的重启。
+		//response, err = client.ChassisControl(ipmi.ChassisControlHardwareRest)
+		//// 执行诊断中断,通常用于触发系统进行自检或诊断操作。
+		//response, err = client.ChassisControl(ipmi.ChassisControlDiagnosticInterrupt)
+		//// 执行软关机,通常用于操作系统的软关机。
+		//response, err = client.ChassisControl(ipmi.ChassisControlSoftShutdown)
+		//
+		//// 从软盘启动
+		//err = client.SetBootParamBootFlags(&ipmi.BOP_BootFlags{
+		//	BootDeviceSelector: 0x01,
+		//})
+		//
+		//if err != nil {
+		//	return
+		//}
+		//// 选择通道号等相关参数
+		//channelNumber := uint8(1)
+		//// 获取 SOL 配置参数
+		//_, err = client.SOLInfo(channelNumber)
+		//if err != nil {
+		//	log.Fatal(err)
+		//}
+		//
+		//_, err = client.SOLActivating()
+
+		if err != nil {
+			zap.S().Infof("err: %v", err)
+			return
+		}
+	}
+*/
+package main
+
+import (
+	"fmt"
+	"os"
+	"path/filepath"
+)
+import "github.com/pin/tftp/v3"
+
+func getCurrentDir() (string, error) {
+	// 获取当前程序的路径
+	exePath, err := os.Executable()
+	if err != nil {
+		return "", err
+	}
+
+	// 获取程序所在的目录
+	dir := filepath.Dir(exePath)
+
+	return dir, nil
+}
+
+func main() {
+	c, err := tftp.NewClient("28.0.0.1:69")
+	if err != nil {
+		fmt.Printf("Error: %v\n", err)
+		return
+	}
+	wt, err := c.Receive("snp.efi", "octet")
+	file, err := os.Create("C:\\Users\\lx\\GolandProjects\\demo3\\demo3.2\\ipxe.efi")
+	// Optionally obtain transfer size before actual data.
+	if n, ok := wt.(tftp.IncomingTransfer).Size(); ok {
+		fmt.Printf("Transfer size: %d\n", n)
+	}
+	n, err := wt.WriteTo(file)
+	fmt.Printf("%d bytes received\n", n)
+}

+ 97 - 0
demo3.3/main.go

@@ -0,0 +1,97 @@
+package main
+
+import (
+	"encoding/json"
+	"fmt"
+	"io/ioutil"
+	"log"
+	"time"
+
+	"github.com/dtm-labs/client/dtmcli"
+	"github.com/dtm-labs/client/dtmcli/logger"
+	"github.com/dtm-labs/client/workflow"
+	"github.com/gin-gonic/gin"
+	"github.com/lithammer/shortuuid/v3"
+)
+
+const qsBusiAPI = "/api/busi_start"
+const qsBusiPort = 8082
+
+var qsBusi = fmt.Sprintf("http://localhost:%d%s", qsBusiPort, qsBusiAPI)
+
+func main() {
+	QsStartSvr()
+	_ = QsFireRequest()
+	time.Sleep(3 * time.Second)
+}
+
+// QsStartSvr quick start: start server
+func QsStartSvr() {
+	app := gin.New()
+	qsAddRoute(app)
+	log.Printf("quick start examples listening at %d", qsBusiPort)
+	go func() {
+		_ = app.Run(fmt.Sprintf(":%d", qsBusiPort))
+	}()
+	time.Sleep(100 * time.Millisecond)
+}
+
+func qsAddRoute(app *gin.Engine) {
+	app.POST(qsBusiAPI+"/TransIn", func(c *gin.Context) {
+		log.Printf("TransIn")
+		c.JSON(200, "")
+		// c.JSON(409, "") // Status 409 for Failure. Won't be retried
+	})
+	app.POST(qsBusiAPI+"/TransInCompensate", func(c *gin.Context) {
+		log.Printf("TransInCompensate")
+		c.JSON(200, "")
+	})
+	app.POST(qsBusiAPI+"/TransOut", func(c *gin.Context) {
+		log.Printf("TransOut")
+		c.JSON(200, "")
+	})
+	app.POST(qsBusiAPI+"/TransOutCompensate", func(c *gin.Context) {
+		log.Printf("TransOutCompensate")
+		c.JSON(200, "")
+	})
+	app.POST(qsBusiAPI+"/workflowResume", func(ctx *gin.Context) {
+		log.Printf("workflowResume")
+		data, err := ioutil.ReadAll(ctx.Request.Body)
+		logger.FatalIfError(err)
+		workflow.ExecuteByQS(ctx.Request.URL.Query(), data)
+	})
+}
+
+const dtmServer = "http://localhost:36789/api/dtmsvr"
+
+// QsFireRequest quick start: fire request
+func QsFireRequest() string {
+	workflow.InitHTTP(dtmServer, qsBusi+"/workflowResume")
+	wfName := "workflow-http"
+	err := workflow.Register(wfName, func(wf *workflow.Workflow, data []byte) error {
+		var req gin.H
+		err := json.Unmarshal(data, &req)
+		logger.FatalIfError(err)
+		_, err = wf.NewBranch().OnRollback(func(bb *dtmcli.BranchBarrier) error {
+			_, err := wf.NewRequest().SetBody(req).Post(qsBusi + "/TransOutCompensate")
+			return err
+		}).NewRequest().SetBody(req).Post(qsBusi + "/TransOut")
+		if err != nil {
+			return err
+		}
+		_, err = wf.NewBranch().OnRollback(func(bb *dtmcli.BranchBarrier) error {
+			_, err := wf.NewRequest().SetBody(req).Post(qsBusi + "/TransInCompensate")
+			return err
+		}).NewRequest().SetBody(req).Post(qsBusi + "/TransIn")
+		return err
+	})
+	logger.FatalIfError(err)
+
+	gid := shortuuid.New()
+	req := &gin.H{"amount": 30} // the payload of requests
+	data, err := json.Marshal(req)
+	logger.FatalIfError(err)
+	err = workflow.Execute(wfName, gid, data)
+	logger.Infof("workflow.Execute result is: %v", err)
+	return gid
+}

+ 37 - 0
demo3.4/main.go

@@ -0,0 +1,37 @@
+package main
+
+import (
+	"fmt"
+	"github.com/lucklucif/ipmigo"
+)
+
+func main() {
+	c, err := ipmigo.NewClient(ipmigo.Arguments{
+		Version:       ipmigo.V2_0,
+		Address:       "120.46.150.226:623",
+		Username:      "ADMIN",
+		Password:      "ADMIN",
+		CipherSuiteID: 3,
+	})
+	if err != nil {
+		fmt.Println(err)
+		return
+	}
+
+	if err := c.Open(); err != nil {
+		fmt.Println(err)
+		return
+	}
+	defer c.Close()
+	//err = c.Ping()
+	//if err != nil {
+	//	fmt.Println(err)
+	//	return
+	//}
+	//cmd := ipmigo.GetChassisStatusCommand{}
+	//if err := c.Execute(&cmd); err != nil {
+	//	fmt.Println(err)
+	//	return
+	//}
+	//fmt.Println("Power On Hours", cmd)
+}

+ 76 - 0
demo3.5/main.go

@@ -0,0 +1,76 @@
+package main
+
+import (
+	"fmt"
+	"github.com/gin-gonic/gin"
+	"github.com/go-ping/ping"
+	"runtime"
+)
+
+var (
+	Count = 5 // ping次数,默认5次
+	linux = true
+)
+
+func init() {
+
+	if runtime.GOOS != "linux" {
+		linux = false
+	}
+}
+
+func main() {
+	r := gin.Default()
+	r.GET("/ping/:ip", func(c *gin.Context) {
+		ip := c.Param("ip")
+		tcpPing, err := TcpPing(ip)
+		if err != nil {
+			c.JSON(200, gin.H{
+				"message": "ping error",
+			})
+		}
+		c.JSON(200, gin.H{
+			"averageDelay": tcpPing,
+		})
+	})
+	r.Run(":8080")
+
+}
+
+func TcpPing(addr string) (string, error) {
+	pinger, err := ping.NewPinger(addr)
+	if err != nil {
+		return "", err
+	}
+	if !linux {
+		pinger.SetPrivileged(true)
+	}
+
+	pinger.Count = Count
+
+	//pinger.OnRecv = func(pkt *ping.Packet) {
+	//	fmt.Printf("%d bytes from %s: icmp_seq=%d time=%v\n",
+	//		pkt.Nbytes, pkt.IPAddr, pkt.Seq, pkt.Rtt)
+	//}
+
+	//pinger.OnDuplicateRecv = func(pkt *ping.Packet) {
+	//	fmt.Printf("%d bytes from %s: icmp_seq=%d time=%v ttl=%v (DUP!)\n",
+	//		pkt.Nbytes, pkt.IPAddr, pkt.Seq, pkt.Rtt, pkt.Ttl)
+	//}
+
+	//pinger.OnFinish = func(stats *ping.Statistics) {
+	//	fmt.Printf("\n--- %s ping statistics ---\n", stats.Addr)
+	//	fmt.Printf("%d packets transmitted, %d packets received, %v%% packet loss\n",
+	//		stats.PacketsSent, stats.PacketsRecv, stats.PacketLoss)
+	//	fmt.Printf("round-trip min/avg/max/stddev = %v/%v/%v/%v\n",
+	//		stats.MinRtt, stats.AvgRtt, stats.MaxRtt, stats.StdDevRtt)
+	//}
+
+	fmt.Printf("PING %s (%s):\n", pinger.Addr(), pinger.IPAddr())
+	err = pinger.Run() // Blocks until finished.
+	if err != nil {
+		return "", err
+	}
+	stats := pinger.Statistics() // get send/receive/rtt stats
+	return stats.AvgRtt.String(), nil
+}

+ 42 - 0
demo3.6/main.go

@@ -0,0 +1,42 @@
+package main
+
+import (
+	"fmt"
+	"math/rand"
+	"net"
+	"time"
+)
+
+func main() {
+	// 定义网段和子网掩码
+	network := "192.168.1.0/22"
+	var randomIP net.IP
+
+	ip, ipNet, err := net.ParseCIDR(network)
+	if err != nil {
+	}
+	net1 := ip.Mask(ipNet.Mask)
+	minIP := net1.To4()
+	maxIP := net.IPv4(minIP[0]|^ipNet.Mask[0], minIP[1]|^ipNet.Mask[1], minIP[2]|^ipNet.Mask[2], minIP[3]|^ipNet.Mask[3]).To4()
+	// 生成随机种子
+	rand.NewSource(time.Now().UnixNano())
+	randomIP = generateRandomIP(minIP, maxIP)
+	fmt.Printf(randomIP.String())
+}
+
+func generateRandomIP(min, max net.IP) net.IP {
+	// IP地址是32位的,每位都是一个字节
+	ip := make(net.IP, len(min))
+	for i := range min {
+		n := int(max[i] - min[i])
+		if n == 0 {
+			ip[i] = min[i]
+		} else {
+			ip[i] = byte(rand.Intn(n) + int(min[i]))
+		}
+	}
+	if ip.Equal(min) || ip.Equal(max) {
+		return generateRandomIP(min, max)
+	}
+	return ip
+}

+ 0 - 0
demo3.7/DHCPtemplate.yaml


+ 30 - 0
demo3.7/main.go

@@ -0,0 +1,30 @@
+package main
+
+import (
+	"fmt"
+	"strings"
+)
+
+func main() {
+	// 原始脚本内容
+	script := `#!ipxe
+dhcp net2
+
+set base-url    centos-7.9.2009/image #请替换为镜像所在的HTTP文件服务器地址
+set ks-url   centos-7.9.2009   # 替换为你的 Kickstart 文件所在的 HTTP 服务器地址
+set ks-file centos-7.9.2009.cfg
+
+kernel ${base-url}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${base-url} ip=dhcp ks=${ks-url}/${ks-file}  # 指定 Kickstart 文件的位置和参数
+initrd ${base-url}/images/pxeboot/initrd.img
+boot`
+
+	// 新的base-url和ks-url
+	newBaseURL := "http://192.168.16.121:8000/images/centos-7.9.2009/image/"
+	newKSURL := "http://192.168.16.121:8000/images/centos-7.9.2009/"
+
+	// 替换原始脚本中的set base-url和set ks-url
+	script = strings.Replace(script, "set base-url    ", fmt.Sprintf("set base-url    %s", newBaseURL), 1)
+	script = strings.Replace(script, "set ks-url   ", fmt.Sprintf("set ks-url   %s", newKSURL), 1)
+
+	fmt.Println(script)
+}

+ 22 - 0
demo3.8/greeter.go

@@ -0,0 +1,22 @@
+// greeter.go
+package main
+
+import "fmt"
+
+type Greeter struct {
+	Message string
+}
+
+func NewGreeter(message string) *Greeter {
+	return &Greeter{
+		Message: message,
+	}
+}
+
+func (g *Greeter) Greet() string {
+	return fmt.Sprintf("Hello, %s!", g.Message)
+}
+
+func (g *Greeter) Name() string {
+	return fmt.Sprintf("Hello, %s!", g.Message)
+}

+ 63 - 0
demo3.8/main.go

@@ -0,0 +1,63 @@
+package main
+
+import "fmt"
+
+//举例说明:
+//  这个例子完成一个旅游,旅游需要依赖一个交通工具和旅游目的地,旅行完再发一个朋友圈
+
+// 旅行结构体
+type Trip struct {
+	Msg          string
+	TrafficTools *Airplane //交通工具,举例飞机
+	Destination  *DunHuang //目的地,举例敦煌
+}
+
+// 旅游的provider
+func NewTrip(trafficTools *Airplane, destination *DunHuang) *Trip {
+	return &Trip{
+		TrafficTools: trafficTools,
+		Destination:  destination,
+	}
+}
+
+// 旅行,发朋友圈的操作
+func (t *Trip) CircleOfFriends() {
+	fmt.Printf("我坐%s去%s旅游了,好开心\n", t.TrafficTools.Name, t.Destination.Name)
+}
+
+// 交通工具相关
+type Airplane struct {
+	Name string
+}
+
+func NewAirplane() *Airplane {
+	return &Airplane{
+		Name: "波音飞机",
+	}
+}
+
+// 目的地相关
+type DunHuang struct {
+	Name string
+}
+
+func NewDunHuang() *DunHuang {
+	return &DunHuang{
+		Name: "敦煌",
+	}
+}
+
+// 手动依赖注入
+func HandleDI() {
+	dh := NewDunHuang()
+	air := NewAirplane()
+	trip := NewTrip(air, dh)
+	trip.CircleOfFriends()
+}
+
+func main() {
+	//调用手动依赖注入
+	HandleDI()
+	//调用wire生成的依赖注入
+	GetTrip().CircleOfFriends()
+}

+ 10 - 0
demo3.8/wire.go

@@ -0,0 +1,10 @@
+//go:build wireinject
+// +build wireinject
+
+package main
+
+import "github.com/google/wire"
+
+func GetTrip() *Trip {
+	panic(wire.Build(NewDunHuang, NewAirplane, NewTrip))
+}

+ 16 - 0
demo3.8/wire_gen.go

@@ -0,0 +1,16 @@
+// Code generated by Wire. DO NOT EDIT.
+
+//go:generate go run -mod=mod github.com/google/wire/cmd/wire
+//go:build !wireinject
+// +build !wireinject
+
+package main
+
+// Injectors from wire.go:
+
+func GetTrip() *Trip {
+	airplane := NewAirplane()
+	dunHuang := NewDunHuang()
+	trip := NewTrip(airplane, dunHuang)
+	return trip
+}

+ 52 - 0
demo3.9/main.go

@@ -0,0 +1,52 @@
+package main
+
+import (
+	"fmt"
+	"io"
+	"net/http"
+	"os"
+	"path/filepath"
+	"strings"
+
+	"github.com/gin-gonic/gin"
+)
+
+func main() {
+	router := gin.Default()
+
+	router.POST("/upload", func(c *gin.Context) {
+		file, header, err := c.Request.FormFile("file")
+		if err != nil {
+			c.String(http.StatusBadRequest, fmt.Sprintf("文件上传失败: %s", err.Error()))
+			return
+		}
+		defer file.Close()
+
+		// 指定保存目录
+		uploadDir := filepath.Join("./uploads", strings.Split(header.Filename, ".")[0])
+		err = os.MkdirAll(uploadDir, os.ModePerm)
+		if err != nil {
+			c.String(http.StatusInternalServerError, fmt.Sprintf("创建上传目录失败: %s", err.Error()))
+			return
+		}
+
+		// 指定保存文件路径
+		filePath := filepath.Join(uploadDir, header.Filename)
+		out, err := os.Create(filePath)
+		if err != nil {
+			c.String(http.StatusInternalServerError, fmt.Sprintf("保存文件失败: %s", err.Error()))
+			return
+		}
+		defer out.Close()
+
+		_, err = io.Copy(out, file)
+		if err != nil {
+			c.String(http.StatusInternalServerError, fmt.Sprintf("保存文件失败: %s", err.Error()))
+			return
+		}
+
+		c.String(http.StatusOK, fmt.Sprintf("文件 %s 上传成功", header.Filename))
+	})
+
+	router.Run(":8080")
+}

BIN
demo4/demo4.exe


+ 123 - 0
demo4/main.go

@@ -0,0 +1,123 @@
+package main
+
+import (
+	"errors"
+	"fmt"
+	"reflect"
+	"strings"
+)
+
+func main() {
+	type Address struct {
+		City  string
+		State string
+	}
+	type User struct {
+		Name    string
+		Age     int
+		Address *Address
+	}
+
+	var test = new(User)
+	test.Name = "ra"
+	fmt.Println(test)
+}
+
+// Struct2MgrStr 结构提转换为字符串
+func Struct2MgrStr(in interface{}, tag, connector string) (string, error) {
+	var out string
+	var val = reflect.ValueOf(in)
+	if val.Kind() == reflect.Array || val.Kind() == reflect.Slice && !val.IsZero() {
+		val = reflect.ValueOf(in.([]interface{})[0])
+	}
+
+	// 判断in是否为指针类型, 如果v为指针类型这将v替换为指针对应的值
+	if val.Kind() == reflect.Ptr {
+		val = val.Elem()
+	}
+
+	if val.Kind() != reflect.Struct && val.Kind() != reflect.Map {
+		return "", errors.New("输入格式异常,不是Struct/Map类型数据")
+	}
+
+	var tp = val.Type()
+	var args = make([]string, 0)
+
+	for i := 0; i < val.NumField(); i++ {
+		v := val.Field(i)
+		if v.IsZero() {
+			continue
+		}
+		if v.Kind() == reflect.Ptr {
+			v = v.Elem()
+		}
+		fi := tp.Field(i)
+		tagVal := fi.Tag.Get(tag)
+		if tagVal == "-" || tagVal == "" {
+			continue
+		}
+		if v.Kind() == reflect.String && v.String() == "" {
+			continue
+		}
+		args = append(args, fmt.Sprintf("%s%s%v", tagVal, connector, v.Interface()))
+	}
+	out = strings.Join(args, " ")
+	return out, nil
+}
+
+//package main
+//
+//import (
+//	"fmt"
+//	"github.com/robfig/cron/v3"
+//	"os"
+//	"time"
+//
+//	"go.uber.org/zap"
+//)
+//
+//func main() {
+//
+//	c := cron.New()
+//
+//	c.Start()
+//	// 初始化 logger
+//	logger := initLogger()
+//
+//	// 监听 SIGUSR1 信号
+//
+//	EntryID, err := c.AddFunc("*/1 * * * *", func() {
+//		logger.Info("cron running")
+//
+//		logger = initLogger()
+//	})
+//	fmt.Println(time.Now(), EntryID, err)
+//
+//	// 保持进程运行
+//	select {}
+//}
+//
+//func initLogger() *zap.Logger {
+//	// 获取当前日期
+//	currentTime := time.Now()
+//
+//	// 格式化日期作为文件名
+//	filename := "log/app_" + currentTime.Format("2006-01-02-15-04-05") + ".log"
+//
+//	_, err2 := os.Create(filename)
+//	if err2 != nil {
+//		panic(err2)
+//
+//	}
+//	// 配置日志输出路径
+//	config := zap.NewProductionConfig()
+//	config.OutputPaths = []string{filename, "stdout"}
+//
+//	// 创建 logger 实例
+//	logger, err := config.Build()
+//	if err != nil {
+//		panic(err)
+//	}
+//
+//	return logger
+//}

BIN
demo4/snp.efi


+ 17 - 0
demo5/config.yaml

@@ -0,0 +1,17 @@
+dhcp:
+  - enabled: true #是否启用dhcp
+    mode: "reservation" #模式
+    bind_addr: "0.0.0.0:67" #绑定地址
+    bind_interface: "" #绑定接口
+    #自动获取
+    #ip_for_packet: "192.168.1.1" #包的ip 如果未定义检测公共 IPv4 地址
+    #syslog_ip: "192.168.1.2" #syslog的ip 如果未定义检测公共 IPv4 地址
+    #tftp_ip: "192.168.1.3" #tftp的ip 如果未定义检测公共 IPv4 地址
+    http_ipxe_script:
+    os_name: "centos" #操作系统名称
+    url: "http://172.17.103.111:8080/file/images/ipxe/auto.ipxe" #默认的ipxe脚本地址
+    inject_mac_address: false #注入mac地址,
+  - enabled: true #是否启用dhcp
+    mode: "reservation" #模式
+    bind_addr: "" #绑定地址
+    bind_interface: "" #绑定接口

+ 269 - 0
demo5/main.go

@@ -0,0 +1,269 @@
+package main
+
+import (
+	"encoding/hex"
+	"github.com/tjfoc/gmsm/sm3"
+)
+
+var a *int
+
+func main() {
+	if true && false && false || false {
+
+	}
+}
+
+func SM3SUM(in string) string {
+	sm3Sum := sm3.Sm3Sum([]byte(in))
+	return hex.EncodeToString(sm3Sum)
+}
+
+//package main
+//
+//import (
+//	"fmt"
+//	"net"
+//)
+//
+//func main() {
+//	netInterfaces, err := net.Interfaces()
+//	if err != nil {
+//		fmt.Println("net.Interfaces failed, err:", err.Error())
+//		return
+//	}
+//
+//	for i := 0; i < len(netInterfaces); i++ {
+//		if (netInterfaces[i].Flags & net.FlagUp) != 0 {
+//			addrs, _ := netInterfaces[i].Addrs()
+//			for _, address := range addrs {
+//				if ipnet, ok := address.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
+//					if ipnet.IP.To4() != nil {
+////						fmt.Println(netInterfaces[i].Name)
+//						fmt.Println(ipnet.IP.String())
+//					}
+//				}
+//			}
+//		}
+//	}
+//
+//	return
+//}
+
+//import (
+//	"fmt"
+//	"github.com/gin-gonic/gin"
+//	"github.com/xuri/excelize/v2"
+//	"net/http"
+//)
+//
+//func main() {
+//	r := gin.Default()
+//	r.POST("/upload", func(c *gin.Context) {
+//		file, err := c.FormFile("file") // 假设表单字段名为"file"
+//		if err != nil {
+//			c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+//			return
+//		}
+//
+//		// 保存上传的文件到本地临时目录
+//		tempFile, err := file.Open()
+//		if err != nil {
+//			c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
+//			return
+//		}
+//		defer tempFile.Close()
+//
+//		// 使用excelize解析Excel文件
+//		f, err := excelize.OpenReader(tempFile)
+//		if err != nil {
+//			c.JSON(http.StatusInternalServerError, gin.H{"error": "Failed to open Excel file."})
+//			return
+//		}
+//
+//		// 示例:读取第一个工作表的第一行数据
+//		sheetName := f.GetSheetName(0)
+//		rows, err := f.GetRows(sheetName)
+//		if err != nil {
+//			c.JSON(http.StatusInternalServerError, gin.H{"error": "Failed to read rows from Excel."})
+//			return
+//		}
+//
+//		// 处理数据,这里简单打印出来
+//		for _, row := range rows {
+//			fmt.Println(row)
+//		}
+//
+//		c.JSON(http.StatusOK, gin.H{"message": "File uploaded and parsed successfully!"})
+//	})
+//
+//	r.Run(":8080") // 启动服务器
+//}
+
+//package main
+//
+//import (
+//	"os"
+//	"text/template"
+//)
+//
+//type Config struct {
+//	ImageURL  string
+//	ScriptURL string
+//	ISO       string
+//}
+//
+//func main() {
+//	// 创建一个Config对象,用于替换模板中的字段
+//	config := Config{
+//		ImageURL:  "http://example.com/images",
+//		ScriptURL: "http://example.com/scripts",
+//		ISO:       "ubuntu.iso",
+//	}
+//
+//	// 模板字符串
+//	templateStr := `#!ipxe
+//dhcp
+//
+//set base-url {{ .ImageURL }} #请替换为镜像所在的HTTP文件服务器地址
+//
+//set ks-file {{ .ScriptURL }}  # 替换为你的 Kickstart 文件所在的 HTTP 服务器地址
+//
+//set iso {{.ISO}}
+//
+//kernel ${base-url}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${base-url} ip=dhcp  ks=${ks-url}  # 指定 Kickstart 文件的位置和参数
+//initrd ${base-url}/images/pxeboot/initrd.img
+//boot
+//`
+//
+//	// 创建模板对象
+//	tmpl, err := template.New("ipxeTemplate").Parse(templateStr)
+//	if err != nil {
+//		panic(err)
+//	}
+//	create, _ := os.Create("auto.ipxe")
+//	// 执行模板并输出结果
+//	if err := tmpl.Execute(create, config); err != nil {
+//		panic(err)
+//	}
+//}
+
+//	func main() {
+//		nums := []int{}
+//		for _, num := range nums {
+//			println(num)
+//		}
+//	}
+/*package main
+
+import (
+	"fmt"
+	"os"
+)
+
+// FileContent 结构体用于存储文件名和内容
+type FileContent struct {
+	FileName string
+	Content  string
+}
+
+func main() {
+	dir := "D:\\GolandProjects\\demo3\\demo3.8" // 替换为实际的文件夹路径
+
+	files, err := os.ReadDir(dir)
+	if err != nil {
+		fmt.Println("Error reading directory:", err)
+		return
+	}
+
+	var fileContents []FileContent
+
+	for _, file := range files {
+		if file.IsDir() {
+			continue // 忽略文件夹
+		}
+
+		fileName := file.Name()
+		filePath := dir + "/" + fileName
+
+		content, err := os.ReadFile(filePath)
+		if err != nil {
+			fmt.Println("Error reading file:", err)
+			continue
+		}
+
+		fileContents = append(fileContents, FileContent{
+			FileName: fileName,
+			Content:  string(content),
+		})
+	}
+
+	// 打印文件名和内容
+	for _, fc := range fileContents {
+		fmt.Println("File Name:", fc.FileName)
+		fmt.Println("Content:", fc.Content)
+		fmt.Println()
+	}
+}*/
+
+//package main
+//
+//import (
+//	"fmt"
+//	"strings"
+//)
+//
+//func main() {
+//	baseURL := "http://172.17.103.111:8080/file/images/ipxe/centos-min/cas.ipxe"
+//	lastSlashIndex := strings.LastIndex(baseURL, "/")
+//	if lastSlashIndex != -1 {
+//		baseURL = baseURL[:lastSlashIndex]
+//	}
+//	fmt.Println(baseURL)
+//}
+
+//package main
+//
+//import (
+//	"fmt"
+//	"net"
+//)
+//
+//func main() {
+//	// 获取所有网络接口
+//	ifaces, err := net.Interfaces()
+//	if err != nil {
+//		fmt.Println("Failed to get interfaces:", err)
+//		return
+//	}
+//
+//	// 遍历网络接口
+//	for _, iface := range ifaces {
+//		fmt.Printf("Interface: %s\n", iface.Name)
+//
+//		// 获取接口的所有地址
+//		addrs, err := iface.Addrs()
+//		if err != nil {
+//			fmt.Println("Failed to get interface addresses:", err)
+//			continue
+//		}
+//
+//		// 遍历并打印每个地址
+//		for _, addr := range addrs {
+//			var ip net.IP
+//			switch v := addr.(type) {
+//			case *net.IPNet:
+//				ip = v.IP
+//			case *net.IPAddr:
+//				ip = v.IP
+//			}
+//
+//			// 排除IPv6地址和回环地址
+//			if ip == nil || ip.IsLoopback() {
+//				continue
+//			}
+//
+//			// 打印IP地址和MAC地址
+//			fmt.Printf("  IP: %s\tMAC: %s\n", ip.String(), iface.HardwareAddr.String())
+//		}
+//	}
+//}

+ 65 - 0
etcd/etcd-viper/main.go

@@ -0,0 +1,65 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	"github.com/spf13/viper"
+	_ "github.com/spf13/viper/remote"
+	clientv3 "go.etcd.io/etcd/client/v3"
+	"time"
+)
+
+func main() {
+	var (
+		client *clientv3.Client
+		config clientv3.Config
+		err    error
+	)
+	config = clientv3.Config{
+		// 这里的 Endpoints 是一个字符串数组切片,支持配合多个节点
+		Endpoints: []string{"106.54.33.152:2379"},
+		// DialTimeout 连接超时设置
+		DialTimeout: time.Duration(5) * time.Millisecond,
+	}
+	if client, err = clientv3.New(config); err != nil {
+		return
+	}
+	// 设置 Viper 读取 etcd 配置
+	err = viper.AddRemoteProvider("etcd3", "106.54.33.152:2379", "/config/app")
+	if err != nil {
+		return
+	}
+	viper.SetConfigType("json") // etcd 中存储的配置类型
+
+	//读取配置
+	err = viper.ReadRemoteConfig()
+	if err != nil {
+		fmt.Printf("Error reading remote config: %v\n", err)
+		return
+	}
+
+	// 打印初始配置
+	fmt.Println("Initial config:", viper.AllSettings())
+
+	// 设置监听
+	go ViperWatcher(client)
+	time.Sleep(time.Second * 50)
+}
+
+func ViperWatcher(client *clientv3.Client) {
+
+	ctx := context.Background()
+	watch := client.Watch(ctx, "/config/app")
+	for {
+		select {
+		case <-watch:
+
+			err := viper.ReadRemoteConfig()
+			if err != nil {
+				fmt.Printf("Error reading remote config: %v\n", err)
+				continue
+			}
+			fmt.Println("Updated config:", viper.AllSettings())
+		}
+	}
+}

+ 57 - 0
etcd/lock/test.go

@@ -0,0 +1,57 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	clientv3 "go.etcd.io/etcd/client/v3"
+	"go.etcd.io/etcd/client/v3/concurrency"
+	"time"
+)
+
+func main() {
+	cli, err := clientv3.New(clientv3.Config{
+		Endpoints:   []string{"106.54.33.152:2379"},
+		DialTimeout: 5 * time.Second,
+	})
+	if err != nil {
+		panic(err)
+	}
+	defer cli.Close()
+
+	for i := 0; i < 10; i++ {
+
+		go func(i int) {
+			m, err := NewPciLock(cli)
+			if err != nil {
+				fmt.Printf("Error creating")
+			}
+			m.IsOwner()
+			err = m.Lock(context.Background())
+			if err != nil {
+				fmt.Printf("Failed to lock: %v\n", err)
+				return
+			}
+			if i == 1 {
+				time.Sleep(time.Second * 10)
+			}
+			fmt.Println(i)
+			err = m.Unlock(context.Background())
+			if err != nil {
+				fmt.Printf("Failed to Unlock: %v\n", err)
+				return
+			}
+		}(i)
+	}
+	time.Sleep(time.Second * 15)
+}
+
+func NewPciLock(etcd *clientv3.Client) (*concurrency.Mutex, error) {
+	session, err := concurrency.NewSession(etcd, concurrency.WithTTL(5))
+	if err != nil {
+		return nil, err
+	}
+
+	m := concurrency.NewMutex(session, "hstack/server/pciLock")
+
+	return m, nil
+}

+ 138 - 0
etcd/test.go

@@ -0,0 +1,138 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	"go.etcd.io/etcd/client/v3"
+	"log"
+	"time"
+)
+
+//func main() {
+//	var (
+//		client *clientv3.Client
+//		config clientv3.Config
+//		err    error
+//	)
+//
+//	config = clientv3.Config{
+//		// 这里的 Endpoints 是一个字符串数组切片,支持配合多个节点
+//		Endpoints: []string{"106.54.33.152:2379"},
+//		// DialTimeout 连接超时设置
+//		DialTimeout: time.Duration(5) * time.Millisecond,
+//	}
+//	if client, err = clientv3.New(config); err != nil {
+//		return
+//	}
+//	kv := client.KV
+//	ctx := context.Background()
+//	c := map[string]interface{}{
+//		"id":   3,
+//		"name": "demo",
+//		"age":  30,
+//	}
+//	data, _ := json.Marshal(c)
+//
+//	var s = "/hstack/nodes/"
+//	var nodes = []string{
+//		"1.1.1.1",
+//		"2.2.2.2",
+//		"3.3.3.3",
+//	}
+//
+//	for _, node := range nodes {
+//		newnodeKey := fmt.Sprintf("%s%s", s, node)
+//		kv.Put(ctx, newnodeKey, string(data))
+//	}
+//
+//	get, err := kv.Get(ctx, s, clientv3.WithPrefix())
+//	if err != nil {
+//		return
+//	}
+//
+//	for _, kv := range get.Kvs {
+//		after, _ := strings.CutPrefix(string(kv.Key), s)
+//		fmt.Printf("%s : %s\n", after, string(kv.Value))
+//	}
+//}
+//
+
+func main() {
+	cli, err := clientv3.New(clientv3.Config{
+		Endpoints:   []string{"106.54.33.152:2379"},
+		DialTimeout: 5 * time.Second,
+	})
+	if err != nil {
+		panic(err)
+	}
+	defer cli.Close()
+
+	ctx, cancel := context.WithCancel(context.Background())
+	defer cancel()
+
+	// 开始监听以 "/services/" 为前缀的键值变化
+	watchCh := cli.Watch(ctx, "/services/", clientv3.WithPrefix())
+
+	go func() {
+
+		for event := range watchCh {
+			if event.Err() != nil {
+				fmt.Printf("Failed to watch: %v\n", event.Err())
+				return
+			}
+			if len(event.Events) == 0 {
+				fmt.Println("No events")
+				return
+			}
+			fmt.Printf("Event: %s %q : %q\n", event.Events[0].Type, event.Events[0].Kv.Key, event.Events[0].Kv.Value)
+			if event.Events[0].Type == clientv3.EventTypeDelete {
+				fmt.Println("删除")
+				fmt.Printf(" %v\n", event.Events[0])
+			}
+		}
+	}()
+	// 创建租约
+	leaseResp, err := cli.Grant(ctx, 15) // 租约时间为 15 秒
+	if err != nil {
+		fmt.Printf("Failed to grant lease: %v\n", err)
+		return
+	}
+
+	// 使用租约创建服务实例的键
+	_, err = cli.Put(ctx, "/services/service1", "", clientv3.WithLease(leaseResp.ID))
+	if err != nil {
+		fmt.Printf("Failed to put service instance: %v\n", err)
+		return
+	}
+
+	alive, err := cli.KeepAlive(ctx, leaseResp.ID) // 续租(ttl/3)
+	if err != nil {
+		fmt.Printf("Failed to keep alive: %v\n", err)
+		return
+	}
+	//监听KeepAlive的响应
+	go func() {
+		for {
+			ka := <-alive
+			if ka == nil {
+				log.Println("租约已失效或KeepAlive通道已关闭")
+				return
+			}
+			log.Printf("续租成功: %v\n", ka)
+		}
+	}()
+
+	fmt.Println("Watching for changes...")
+	get, _ := cli.Get(ctx, "/services/service1")
+	fmt.Println(get.Kvs)
+	// 处理监听结果
+	go func() {
+		time.Sleep(10 * time.Second)
+		// 注意: 程序退出时,应当撤销租约或删除键
+		_, err = cli.Revoke(context.TODO(), leaseResp.ID)
+		if err != nil {
+			log.Fatal(err)
+		}
+	}()
+	time.Sleep(15 * time.Second)
+}

+ 53 - 0
etcd/txn/test.go

@@ -0,0 +1,53 @@
+package main
+
+import (
+	"context"
+	"fmt"
+	clientv3 "go.etcd.io/etcd/client/v3"
+	"time"
+)
+
+func main() {
+	cli, err := clientv3.New(clientv3.Config{
+		Endpoints:   []string{"106.54.33.152:2379"},
+		DialTimeout: 5 * time.Second,
+	})
+	if err != nil {
+		panic(err)
+	}
+	defer cli.Close()
+
+	ctx, cancel := context.WithCancel(context.Background())
+	defer cancel()
+
+	_, err = cli.Put(ctx, "/services/service", "running")
+	if err != nil {
+		fmt.Printf("Failed to put service instance: %v\n", err)
+		return
+	}
+	go func() {
+		time.Sleep(time.Second * 5)
+
+		commit, err := cli.Txn(ctx).
+			If(clientv3.Compare(clientv3.Value("/services/service"), "=", "running")).
+			Then(clientv3.OpPut("/services/service", "stop")).
+			Else(clientv3.OpPut("/services/service", "error")).
+			Commit()
+		if err != nil {
+			fmt.Printf("Failed to commit transaction: %v\n", err)
+			return
+		}
+		if !commit.Succeeded {
+			fmt.Printf("Transaction failed\n")
+		}
+		fmt.Println(commit)
+	}()
+
+	_, err = cli.Put(ctx, "/services/service", "running1")
+	if err != nil {
+		fmt.Printf("Failed to put service instance: %v\n", err)
+		return
+	}
+
+	time.Sleep(time.Second * 10)
+}

+ 4 - 0
filewatch/ipxe_template.json

@@ -0,0 +1,4 @@
+{
+  "ubuntu": "#!ipxe\ndhcp\n\nset base-url {{ .ImageURL }}\nset autoinstall {{ .ScriptURL }}\nset iso {{.ISO}}\n\nkernel ${base-url}/image/casper/vmlinuz\ninitrd ${base-url}/image/casper/initrd\nimgargs vmlinuz initrd=initrd url=${base-url}/${iso} autoinstall ds=nocloud-net;s=${autoinstall} cloud-config-url=/dev/null ip=dhcp fsck.mode=skip --\nboot",
+  "centos": "#!ipxe\ndhcp\n\nset base-url {{ .ImageURL }} #请替换为镜像所在的HTTP文件服务器地址\nset ks-file {{ .ScriptURL }}  # 替换为你的 Kickstart 文件所在的 HTTP 服务器地址\n\nkernel ${base-url}/image/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${base-url}/image ip=dhcp  inst.ks=${ks-file}  # 指定 Kickstart 文件的位置和参数\ninitrd ${base-url}/image/images/pxeboot/initrd.img\nboot"
+}

+ 86 - 0
filewatch/main.go

@@ -0,0 +1,86 @@
+package main
+
+import (
+	"encoding/json"
+	"fmt"
+	"github.com/fsnotify/fsnotify"
+	"log"
+	"os"
+	"os/signal"
+	"syscall"
+)
+
+func main() {
+	ReadOSTemplate("C:\\Users\\lx\\GolandProjects\\demo3\\filewatch\\ipxe_template.json")
+	go MonitorDirectory("C:\\Users\\lx\\GolandProjects\\demo3\\filewatch\\ipxe_template.json")
+	interruptChan := make(chan os.Signal, 1)
+
+	// 注册信号处理
+	signal.Notify(interruptChan, os.Interrupt, syscall.SIGTERM)
+
+	// 等待信号
+	<-interruptChan
+
+}
+
+var OSScript = make(map[string]string)
+
+// MonitorDirectory 监视文件更改
+func MonitorDirectory(dirPath string) {
+	watcher, err := fsnotify.NewWatcher()
+	if err != nil {
+		log.Fatal(err)
+	}
+	defer watcher.Close()
+
+	done := make(chan bool)
+
+	go func() {
+		for {
+			select {
+			case event, ok := <-watcher.Events:
+				if !ok {
+					return
+				}
+				fmt.Println("event:", event)
+				if event.Op&fsnotify.Write == fsnotify.Write {
+					ReadOSTemplate(dirPath)
+				}
+			case err, ok := <-watcher.Errors:
+				if !ok {
+					return
+				}
+				fmt.Println("error:", err)
+			}
+		}
+	}()
+
+	// 添加需要监视的目录路径
+	if err := addSubdirectories(watcher, dirPath); err != nil {
+		log.Fatal(err)
+	}
+	<-done
+}
+
+func addSubdirectories(watcher *fsnotify.Watcher, dirPath string) error {
+
+	if err := watcher.Add(dirPath); err != nil {
+		return err
+	}
+
+	return nil
+}
+
+func ReadOSTemplate(dirPath string) {
+	jsonFile, err := os.ReadFile(dirPath)
+	if err != nil {
+		log.Println("Error reading file:", err)
+		return
+	}
+	err = json.Unmarshal(jsonFile, &OSScript)
+	if err != nil {
+		log.Println("Error reading file:", err)
+		return
+	}
+	fmt.Println("OS Script:", OSScript)
+}

+ 136 - 0
go.mod

@@ -0,0 +1,136 @@
+module demo
+
+go 1.22
+
+require (
+	github.com/dtm-labs/client v1.18.7
+	github.com/fsnotify/fsnotify v1.7.0
+	github.com/gin-gonic/gin v1.10.0
+	github.com/go-ping/ping v1.1.0
+	github.com/google/wire v0.6.0
+	github.com/lithammer/shortuuid/v3 v3.0.7
+	github.com/lucklucif/ipmigo v0.0.0-20220207161123-b2ae2e5288df
+	github.com/pin/tftp/v3 v3.1.0
+	github.com/spf13/viper v1.19.0
+	github.com/streadway/amqp v1.1.0
+	github.com/tjfoc/gmsm v1.4.1
+	github.com/wagslane/go-rabbitmq v0.14.2
+	go.etcd.io/etcd/client/v3 v3.5.15
+	go.mongodb.org/mongo-driver v1.16.0
+	go.uber.org/zap v1.27.0
+	gorm.io/driver/mysql v1.5.7
+	gorm.io/gorm v1.25.11
+)
+
+require (
+	cloud.google.com/go v0.112.1 // indirect
+	cloud.google.com/go/compute v1.24.0 // indirect
+	cloud.google.com/go/compute/metadata v0.2.3 // indirect
+	cloud.google.com/go/firestore v1.15.0 // indirect
+	cloud.google.com/go/longrunning v0.5.5 // indirect
+	github.com/armon/go-metrics v0.4.1 // indirect
+	github.com/bytedance/sonic v1.11.6 // indirect
+	github.com/bytedance/sonic/loader v0.1.1 // indirect
+	github.com/cespare/xxhash/v2 v2.2.0 // indirect
+	github.com/cloudwego/base64x v0.1.4 // indirect
+	github.com/cloudwego/iasm v0.2.0 // indirect
+	github.com/coreos/go-semver v0.3.0 // indirect
+	github.com/coreos/go-systemd/v22 v22.3.2 // indirect
+	github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
+	github.com/dtm-labs/dtmdriver v0.0.6 // indirect
+	github.com/dtm-labs/logger v0.0.1 // indirect
+	github.com/fatih/color v1.14.1 // indirect
+	github.com/felixge/httpsnoop v1.0.4 // indirect
+	github.com/gabriel-vasile/mimetype v1.4.3 // indirect
+	github.com/gin-contrib/sse v0.1.0 // indirect
+	github.com/go-logr/logr v1.4.1 // indirect
+	github.com/go-logr/stdr v1.2.2 // indirect
+	github.com/go-playground/locales v0.14.1 // indirect
+	github.com/go-playground/universal-translator v0.18.1 // indirect
+	github.com/go-playground/validator/v10 v10.20.0 // indirect
+	github.com/go-redis/redis/v8 v8.11.5 // indirect
+	github.com/go-resty/resty/v2 v2.7.0 // indirect
+	github.com/go-sql-driver/mysql v1.7.0 // indirect
+	github.com/goccy/go-json v0.10.2 // indirect
+	github.com/gogo/protobuf v1.3.2 // indirect
+	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
+	github.com/golang/protobuf v1.5.4 // indirect
+	github.com/golang/snappy v0.0.4 // indirect
+	github.com/google/s2a-go v0.1.7 // indirect
+	github.com/google/uuid v1.6.0 // indirect
+	github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
+	github.com/googleapis/gax-go/v2 v2.12.3 // indirect
+	github.com/hashicorp/consul/api v1.28.2 // indirect
+	github.com/hashicorp/errwrap v1.1.0 // indirect
+	github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
+	github.com/hashicorp/go-hclog v1.5.0 // indirect
+	github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
+	github.com/hashicorp/go-multierror v1.1.1 // indirect
+	github.com/hashicorp/go-rootcerts v1.0.2 // indirect
+	github.com/hashicorp/golang-lru v0.5.4 // indirect
+	github.com/hashicorp/hcl v1.0.0 // indirect
+	github.com/hashicorp/serf v0.10.1 // indirect
+	github.com/jinzhu/inflection v1.0.0 // indirect
+	github.com/jinzhu/now v1.1.5 // indirect
+	github.com/json-iterator/go v1.1.12 // indirect
+	github.com/klauspost/compress v1.17.2 // indirect
+	github.com/klauspost/cpuid/v2 v2.2.7 // indirect
+	github.com/leodido/go-urn v1.4.0 // indirect
+	github.com/magiconair/properties v1.8.7 // indirect
+	github.com/mattn/go-colorable v0.1.13 // indirect
+	github.com/mattn/go-isatty v0.0.20 // indirect
+	github.com/mitchellh/go-homedir v1.1.0 // indirect
+	github.com/mitchellh/mapstructure v1.5.0 // indirect
+	github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
+	github.com/modern-go/reflect2 v1.0.2 // indirect
+	github.com/montanaflynn/stats v0.7.1 // indirect
+	github.com/natefinch/lumberjack v2.0.0+incompatible // indirect
+	github.com/nats-io/nats.go v1.34.0 // indirect
+	github.com/nats-io/nkeys v0.4.7 // indirect
+	github.com/nats-io/nuid v1.0.1 // indirect
+	github.com/pelletier/go-toml/v2 v2.2.2 // indirect
+	github.com/pkg/errors v0.9.1 // indirect
+	github.com/rabbitmq/amqp091-go v1.10.0 // indirect
+	github.com/sagikazarmark/crypt v0.19.0 // indirect
+	github.com/sagikazarmark/locafero v0.4.0 // indirect
+	github.com/sagikazarmark/slog-shim v0.1.0 // indirect
+	github.com/sourcegraph/conc v0.3.0 // indirect
+	github.com/spf13/afero v1.11.0 // indirect
+	github.com/spf13/cast v1.6.0 // indirect
+	github.com/spf13/pflag v1.0.5 // indirect
+	github.com/subosito/gotenv v1.6.0 // indirect
+	github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
+	github.com/ugorji/go/codec v1.2.12 // indirect
+	github.com/xdg-go/pbkdf2 v1.0.0 // indirect
+	github.com/xdg-go/scram v1.1.2 // indirect
+	github.com/xdg-go/stringprep v1.0.4 // indirect
+	github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
+	go.etcd.io/etcd/api/v3 v3.5.15 // indirect
+	go.etcd.io/etcd/client/pkg/v3 v3.5.15 // indirect
+	go.etcd.io/etcd/client/v2 v2.305.12 // indirect
+	go.opencensus.io v0.24.0 // indirect
+	go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
+	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
+	go.opentelemetry.io/otel v1.24.0 // indirect
+	go.opentelemetry.io/otel/metric v1.24.0 // indirect
+	go.opentelemetry.io/otel/trace v1.24.0 // indirect
+	go.uber.org/multierr v1.10.0 // indirect
+	golang.org/x/arch v0.8.0 // indirect
+	golang.org/x/crypto v0.23.0 // indirect
+	golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
+	golang.org/x/net v0.25.0 // indirect
+	golang.org/x/oauth2 v0.18.0 // indirect
+	golang.org/x/sync v0.7.0 // indirect
+	golang.org/x/sys v0.20.0 // indirect
+	golang.org/x/text v0.15.0 // indirect
+	golang.org/x/time v0.5.0 // indirect
+	google.golang.org/api v0.171.0 // indirect
+	google.golang.org/appengine v1.6.8 // indirect
+	google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 // indirect
+	google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 // indirect
+	google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c // indirect
+	google.golang.org/grpc v1.62.1 // indirect
+	google.golang.org/protobuf v1.34.1 // indirect
+	gopkg.in/ini.v1 v1.67.0 // indirect
+	gopkg.in/yaml.v3 v3.0.1 // indirect
+)

+ 704 - 0
go.sum

@@ -0,0 +1,704 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM=
+cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4=
+cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg=
+cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40=
+cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
+cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
+cloud.google.com/go/firestore v1.15.0 h1:/k8ppuWOtNuDHt2tsRV42yI21uaGnKDEQnRFeBpbFF8=
+cloud.google.com/go/firestore v1.15.0/go.mod h1:GWOxFXcv8GZUtYpWHw/w6IuYNux/BtmeVTMmjrm4yhk=
+cloud.google.com/go/longrunning v0.5.5 h1:GOE6pZFdSrTb4KAiKnXsJBtlE6mEyaW44oKyMILWnOg=
+cloud.google.com/go/longrunning v0.5.5/go.mod h1:WV2LAxD8/rg5Z1cNW6FJ/ZpX4E4VnDnoTk0yawPBB7s=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/BurntSushi/toml v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
+github.com/BurntSushi/toml v1.2.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
+github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
+github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
+github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
+github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA=
+github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4=
+github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
+github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
+github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
+github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
+github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc0=
+github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4=
+github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM=
+github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
+github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
+github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag=
+github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y=
+github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w=
+github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg=
+github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
+github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI=
+github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
+github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=
+github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
+github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI=
+github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
+github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
+github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
+github.com/dtm-labs/client v1.18.7 h1:JOvw1loWhjY5w0gyasHs+BeEyWFBgHvSNl/MNsVQZIA=
+github.com/dtm-labs/client v1.18.7/go.mod h1:szt/7b2fY5ho4N3SAbEChjWvI7l0RMHjrjfF6KoD0pg=
+github.com/dtm-labs/dtmdriver v0.0.6 h1:Iz6xnO+hE2TKDHI2TX4BKCzMtgXYgeQFBEGvvaNhbs8=
+github.com/dtm-labs/dtmdriver v0.0.6/go.mod h1:V5E1uFsExb6Do32ezpB8bMX6be+izLhkcboniLP5shU=
+github.com/dtm-labs/logger v0.0.1 h1:187UPkYviyOXelmkbew+Q94mg/BFjxJEsHfyHawu5YQ=
+github.com/dtm-labs/logger v0.0.1/go.mod h1:0woMQZ6ljx9wZIl7hW8cuV2PRQmwEKxhqYtab7zVNWg=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
+github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
+github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
+github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
+github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w=
+github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg=
+github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
+github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
+github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
+github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
+github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
+github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
+github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
+github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
+github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU=
+github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
+github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
+github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
+github.com/go-ping/ping v1.1.0 h1:3MCGhVX4fyEUuhsfwPrsEdQw6xspHkv5zHsiSoDFZYw=
+github.com/go-ping/ping v1.1.0/go.mod h1:xIFjORFzTxqIV/tDVGO4eDy/bLuSyawEeojSm3GfRGk=
+github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
+github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
+github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
+github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
+github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
+github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
+github.com/go-playground/validator/v10 v10.20.0 h1:K9ISHbSaI0lyB2eWMPJo+kOS/FBExVwjEviJTixqxL8=
+github.com/go-playground/validator/v10 v10.20.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
+github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
+github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
+github.com/go-resty/resty/v2 v2.7.0 h1:me+K9p3uhSmXtrBZ4k9jcEAfJmuC8IivWHwaLZwPrFY=
+github.com/go-resty/resty/v2 v2.7.0/go.mod h1:9PWDzw47qPphMRFfhsyk0NnSgvluHcljSMVIq3w7q0I=
+github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc=
+github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
+github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
+github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
+github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
+github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
+github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
+github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
+github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
+github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
+github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
+github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
+github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o=
+github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw=
+github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
+github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/google/wire v0.6.0 h1:HBkoIh4BdSxoyo9PveV8giw7ZsaBOvzWKfcg/6MrVwI=
+github.com/google/wire v0.6.0/go.mod h1:F4QhpQ9EDIdJ1Mbop/NZBRB+5yrR6qg3BnctaoUk6NA=
+github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs=
+github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0=
+github.com/googleapis/gax-go/v2 v2.12.3 h1:5/zPPDvw8Q1SuXjrqrZslrqT7dL/uJT2CQii/cLCKqA=
+github.com/googleapis/gax-go/v2 v2.12.3/go.mod h1:AKloxT6GtNbaLm8QTNSidHUVsHYcBHwWRvkNFJUQcS4=
+github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
+github.com/hashicorp/consul/api v1.28.2 h1:mXfkRHrpHN4YY3RqL09nXU1eHKLNiuAN4kHvDQ16k/8=
+github.com/hashicorp/consul/api v1.28.2/go.mod h1:KyzqzgMEya+IZPcD65YFoOVAgPpbfERu4I/tzG6/ueE=
+github.com/hashicorp/consul/sdk v0.16.0 h1:SE9m0W6DEfgIVCJX7xU+iv/hUl4m/nxqMTnCdMxDpJ8=
+github.com/hashicorp/consul/sdk v0.16.0/go.mod h1:7pxqqhqoaPqnBnzXD1StKed62LqJeClzVsUEy85Zr0A=
+github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
+github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=
+github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
+github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
+github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
+github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
+github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c=
+github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
+github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
+github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
+github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
+github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
+github.com/hashicorp/go-msgpack v0.5.5 h1:i9R9JSrqIz0QVLz3sz+i3YJdT7TTSLcfLLzJi9aZTuI=
+github.com/hashicorp/go-msgpack v0.5.5/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
+github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
+github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA=
+github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
+github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
+github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
+github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc=
+github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8=
+github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
+github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc=
+github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A=
+github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
+github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
+github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
+github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
+github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
+github.com/hashicorp/go-version v1.2.1 h1:zEfKbn2+PDgroKdiOzqiE8rsmLqU2uwi5PB5pBJ3TkI=
+github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
+github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
+github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
+github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
+github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc=
+github.com/hashicorp/memberlist v0.5.0 h1:EtYPN8DpAURiapus508I4n9CzHs2W+8NZGbmmR/prTM=
+github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0=
+github.com/hashicorp/serf v0.10.1 h1:Z1H2J60yRKvfDYAOZLd2MU0ND4AH/WDz7xYHDWQsIPY=
+github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4=
+github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
+github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
+github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
+github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
+github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
+github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
+github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
+github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
+github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4=
+github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
+github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
+github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM=
+github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
+github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
+github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
+github.com/lithammer/shortuuid/v3 v3.0.7 h1:trX0KTHy4Pbwo/6ia8fscyHoGA+mf1jWbPJVuvyJQQ8=
+github.com/lithammer/shortuuid/v3 v3.0.7/go.mod h1:vMk8ke37EmiewwolSO1NLW8vP4ZaKlRuDIi8tWWmAts=
+github.com/lucklucif/ipmigo v0.0.0-20220207161123-b2ae2e5288df h1:CMRy+hqaA7Qyb5YLePQ9MaSa8RsFzhCyrUn5vuCRr1o=
+github.com/lucklucif/ipmigo v0.0.0-20220207161123-b2ae2e5288df/go.mod h1:LoolTif163tJ8JEFud3n1ow7MtfG2yelWQklvVrGNyA=
+github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
+github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
+github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
+github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
+github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
+github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
+github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
+github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
+github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
+github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
+github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
+github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
+github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
+github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
+github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
+github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
+github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
+github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
+github.com/miekg/dns v1.1.41 h1:WMszZWJG0XmzbK9FEmzH2TVcqYzFesusSIB41b8KHxY=
+github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI=
+github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI=
+github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
+github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
+github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
+github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
+github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
+github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE=
+github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/natefinch/lumberjack v2.0.0+incompatible h1:4QJd3OLAMgj7ph+yZTuX13Ld4UpgHp07nNdFX7mqFfM=
+github.com/natefinch/lumberjack v2.0.0+incompatible/go.mod h1:Wi9p2TTF5DG5oU+6YfsmYQpsTIOm0B1VNzQg9Mw6nPk=
+github.com/nats-io/nats.go v1.34.0 h1:fnxnPCNiwIG5w08rlMcEKTUw4AV/nKyGCOJE8TdhSPk=
+github.com/nats-io/nats.go v1.34.0/go.mod h1:Ubdu4Nh9exXdSz0RVWRFBbRfrbSxOYd26oF0wkWclB8=
+github.com/nats-io/nkeys v0.4.7 h1:RwNJbbIdYCoClSDNY7QVKZlyb/wfT6ugvFCiKy6vDvI=
+github.com/nats-io/nkeys v0.4.7/go.mod h1:kqXRgRDPlGy7nGaEDMuYzmiJCIAAWDK0IMBtDmGD0nc=
+github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=
+github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
+github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
+github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
+github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
+github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
+github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
+github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
+github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
+github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
+github.com/onsi/ginkgo/v2 v2.0.0/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c=
+github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
+github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
+github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
+github.com/onsi/gomega v1.18.1 h1:M1GfJqGRrBrrGGsbxzV5dqM2U2ApXefZCQpkukxYRLE=
+github.com/onsi/gomega v1.18.1/go.mod h1:0q+aL8jAiMXy9hbwj2mr5GziHiwhAIQpFmmtT5hitRs=
+github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
+github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
+github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
+github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
+github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
+github.com/pin/tftp/v3 v3.1.0 h1:rQaxd4pGwcAJnpId8zC+O2NX3B2/NscjDZQaqEjuE7c=
+github.com/pin/tftp/v3 v3.1.0/go.mod h1:xwQaN4viYL019tM4i8iecm++5cGxSqen6AJEOEyEI0w=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
+github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
+github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
+github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
+github.com/rabbitmq/amqp091-go v1.10.0 h1:STpn5XsHlHGcecLmMFCtg7mqq0RnD+zFr4uzukfVhBw=
+github.com/rabbitmq/amqp091-go v1.10.0/go.mod h1:Hy4jKW5kQART1u+JkDTF9YYOQUHXqMuhrgxOEeS7G4o=
+github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
+github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
+github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
+github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
+github.com/sagikazarmark/crypt v0.19.0 h1:WMyLTjHBo64UvNcWqpzY3pbZTYgnemZU8FBZigKc42E=
+github.com/sagikazarmark/crypt v0.19.0/go.mod h1:c6vimRziqqERhtSe0MhIvzE1w54FrCHtrXb5NH/ja78=
+github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ=
+github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4=
+github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
+github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
+github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=
+github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
+github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
+github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
+github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
+github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
+github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
+github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
+github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
+github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=
+github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg=
+github.com/streadway/amqp v1.1.0 h1:py12iX8XSyI7aN/3dUT8DFIDJazNJsVJdxNVEpnQTZM=
+github.com/streadway/amqp v1.1.0/go.mod h1:WYSrTEYHOXHd0nwFeUXAe2G2hRnQT+deZJJf88uS9Bg=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
+github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
+github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
+github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
+github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
+github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
+github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
+github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
+github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
+github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
+github.com/wagslane/go-rabbitmq v0.14.2 h1:3l75Unsy0b8sb3ILqJxMTXkQLUPI67BOuubV9YBjGLE=
+github.com/wagslane/go-rabbitmq v0.14.2/go.mod h1:6sCLt2wZoxyC73G7u/yD6/RX/yYf+x5D8SQk8nsa4Lc=
+github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
+github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
+github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs=
+github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY=
+github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4=
+github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM=
+github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8=
+github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM=
+github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d h1:splanxYIlg+5LfHAM6xpdFEAYOk8iySO56hMFq6uLyA=
+github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+go.etcd.io/etcd/api/v3 v3.5.15 h1:3KpLJir1ZEBrYuV2v+Twaa/e2MdDCEZ/70H+lzEiwsk=
+go.etcd.io/etcd/api/v3 v3.5.15/go.mod h1:N9EhGzXq58WuMllgH9ZvnEr7SI9pS0k0+DHZezGp7jM=
+go.etcd.io/etcd/client/pkg/v3 v3.5.15 h1:fo0HpWz/KlHGMCC+YejpiCmyWDEuIpnTDzpJLB5fWlA=
+go.etcd.io/etcd/client/pkg/v3 v3.5.15/go.mod h1:mXDI4NAOwEiszrHCb0aqfAYNCrZP4e9hRca3d1YK8EU=
+go.etcd.io/etcd/client/v2 v2.305.12 h1:0m4ovXYo1CHaA/Mp3X/Fak5sRNIWf01wk/X1/G3sGKI=
+go.etcd.io/etcd/client/v2 v2.305.12/go.mod h1:aQ/yhsxMu+Oht1FOupSr60oBvcS9cKXHrzBpDsPTf9E=
+go.etcd.io/etcd/client/v3 v3.5.15 h1:23M0eY4Fd/inNv1ZfU3AxrbbOdW79r9V9Rl62Nm6ip4=
+go.etcd.io/etcd/client/v3 v3.5.15/go.mod h1:CLSJxrYjvLtHsrPKsy7LmZEE+DK2ktfd2bN4RhBMwlU=
+go.mongodb.org/mongo-driver v1.9.1/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY=
+go.mongodb.org/mongo-driver v1.16.0 h1:tpRsfBJMROVHKpdGyc1BBEzzjDUWjItxbVSZ8Ls4BQ4=
+go.mongodb.org/mongo-driver v1.16.0/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw=
+go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
+go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
+go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg=
+go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk=
+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw=
+go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo=
+go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo=
+go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI=
+go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco=
+go.opentelemetry.io/otel/sdk v1.22.0 h1:6coWHw9xw7EfClIC/+O31R8IY3/+EiRFHevmHafB2Gw=
+go.opentelemetry.io/otel/sdk v1.22.0/go.mod h1:iu7luyVGYovrRpe2fmj3CVKouQNdTOkxtLzPvPz1DOc=
+go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
+go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
+go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
+go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
+go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
+go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
+go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
+go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
+go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
+go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
+go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw=
+go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
+go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
+golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
+golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc=
+golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
+golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
+golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg=
+golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
+golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=
+golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
+golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8=
+golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
+golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
+golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
+golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
+golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=
+golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
+golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI=
+golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
+golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
+golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
+golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
+golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
+golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
+golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
+golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
+golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
+golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
+golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
+golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
+golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
+golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
+golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
+golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/api v0.171.0 h1:w174hnBPqut76FzW5Qaupt7zY8Kql6fiVjgys4f58sU=
+google.golang.org/api v0.171.0/go.mod h1:Hnq5AHm4OTMt2BUVjael2CWZFD6vksJdWCWiUAmjC9o=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
+google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9 h1:9+tzLLstTlPTRyJTh+ah5wIMsBW5c4tQwGTN3thOW9Y=
+google.golang.org/genproto v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:mqHbVIp48Muh7Ywss/AD6I5kNVKZMmAa/QEW58Gxp2s=
+google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2 h1:rIo7ocm2roD9DcFIX67Ym8icoGCKSARAiPljFhh5suQ=
+google.golang.org/genproto/googleapis/api v0.0.0-20240311132316-a219d84964c2/go.mod h1:O1cOfN1Cy6QEYr7VxtjOyP5AdAuR0aJ/MYZaaof623Y=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c h1:lfpJ/2rWPa/kJgxyyXM8PrNnfCzcmxJ265mADgwmvLI=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240314234333-6e1732d8331c/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
+google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
+google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
+google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
+google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk=
+google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
+google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
+google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
+gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
+gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
+gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8=
+gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gorm.io/driver/mysql v1.5.7 h1:MndhOPYOfEp2rHKgkZIhJ16eVUIRf2HmzgoPmh7FCWo=
+gorm.io/driver/mysql v1.5.7/go.mod h1:sEtPWMiqiN1N1cMXoXmBbd8C6/l+TESwriotuRRpkDM=
+gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
+gorm.io/gorm v1.25.11 h1:/Wfyg1B/je1hnDx3sMkX+gAlxrlZpn6X0BXRlwXlvHg=
+gorm.io/gorm v1.25.11/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
+rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=

+ 57 - 0
gorm/main.go

@@ -0,0 +1,57 @@
+package main
+
+import (
+	"fmt"
+	"gorm.io/driver/mysql"
+	"gorm.io/gorm"
+)
+
+// 定义 User 模型
+type User struct {
+	gorm.Model
+	Name  string
+	Email string
+}
+
+func main() {
+
+	user := User{Name: "John Doe", Email: "john.doe@example.com"}
+	Created(&user)
+	// 打印成功创建的消息
+	fmt.Printf("User created with ID: %d\n", user.ID)
+
+}
+
+func Created(u *User) {
+	dsn := "root:lxz664278@tcp(106.54.33.152:33369)/gorm?charset=utf8mb4&parseTime=True&loc=Local"
+	db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
+	if err != nil {
+		panic("failed to connect database")
+	}
+
+	// 创建记录
+	result := db.Create(u)
+
+	if result.Error != nil {
+		fmt.Println("Error creating user:", result.Error)
+		return
+	}
+
+	// 更新记录
+	var t = &User{
+		Model: gorm.Model{
+			ID: u.ID,
+		},
+		Name:  "John Doe Updated",
+		Email: "",
+	}
+	db.Updates(t)
+
+	var user User
+	re := db.Model(&User{}).First(&user, u.ID)
+	if re.Error != nil {
+		fmt.Println("Error getting user:", re.Error)
+		return
+	}
+	fmt.Println("User:", user)
+}

+ 1 - 0
log/app_2024-04-22-09-56-25.log

@@ -0,0 +1 @@
+{"level":"info","ts":1713751020.0095935,"caller":"demo4/main.go:23","msg":"cron running"}

+ 0 - 0
log/app_2024-04-22-09-57-00.log


+ 1 - 0
log/app_2024-04-23-10-25-25.log

@@ -0,0 +1 @@
+{"level":"info","ts":1713839160.0081775,"caller":"demo4/main.go:23","msg":"cron running"}

+ 1 - 0
log/app_2024-04-23-10-26-00.log

@@ -0,0 +1 @@
+{"level":"info","ts":1713839220.0129604,"caller":"demo4/main.go:23","msg":"cron running"}

+ 1 - 0
log/app_2024-04-23-10-27-00.log

@@ -0,0 +1 @@
+{"level":"info","ts":1713839280.0091867,"caller":"demo4/main.go:23","msg":"cron running"}

+ 0 - 0
log/app_2024-04-23-10-28-00.log


+ 66 - 0
logfile.log

@@ -0,0 +1,66 @@
+{"level":"info","ts":1704272184.928513,"caller":"demo3/main.go:34","msg":"hello world"}
+{"level":"info","ts":1704272185.0822535,"caller":"demo3/main.go:54","msg":"Connected to MongoDB!"}
+{"level":"info","ts":1704272185.106306,"caller":"demo3/main.go:68","msg":"Inserted a single document: ObjectID(\"65952139def8833b665dd2f5\")"}
+{"level":"info","ts":1704272228.7631419,"caller":"demo3/main.go:34","msg":"hello world"}
+{"level":"info","ts":1704272228.9027374,"caller":"demo3/main.go:54","msg":"Connected to MongoDB!"}
+{"level":"info","ts":1704272228.9224439,"caller":"demo3/main.go:68","msg":"Inserted a single document: ObjectID(\"65952164640ace371ac22ac4\")"}
+2024-01-03T17:00:55.930+0800	INFO	demo3/main.go:34	hello world
+2024-01-03T17:00:56.683+0800	INFO	demo3/main.go:54	Connected to MongoDB!
+2024-01-03T17:00:56.995+0800	INFO	demo3/main.go:68	Inserted a single document: ObjectID("659522485bf327852e02052f")
+2024-01-04T09:01:02.362+0800	INFO	demo3/main.go:34	hello world
+2024-01-04T09:01:02.516+0800	INFO	demo3/main.go:54	Connected to MongoDB!
+2024-01-04T09:01:02.536+0800	INFO	demo3/main.go:72	Inserted a single document: ObjectID("6596034ea9a7fb4ca0fb9bf1")
+2024-01-04T09:01:02.559+0800	INFO	demo3/main.go:78	err: mongo: no documents in result
+2024-01-04T09:02:01.687+0800	INFO	demo3/main.go:34	hello world
+2024-01-04T09:02:01.907+0800	INFO	demo3/main.go:54	Connected to MongoDB!
+2024-01-04T09:02:01.940+0800	INFO	demo3/main.go:72	Inserted a single document: ObjectID("65960389755a9dc019bfe12d")
+2024-01-04T09:02:01.972+0800	INFO	demo3/main.go:78	err: mongo: no documents in result
+2024-01-04T09:02:36.913+0800	INFO	demo3/main.go:34	hello world
+2024-01-04T09:02:37.081+0800	INFO	demo3/main.go:54	Connected to MongoDB!
+2024-01-04T09:02:37.113+0800	INFO	demo3/main.go:72	Inserted a single document: ObjectID("659603ad8f423b7ca4c71226")
+2024-01-04T09:07:21.820+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T09:07:21.985+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T09:07:22.011+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("659604c98062965f1f081c0a")
+2024-01-04T09:07:42.237+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T09:07:42.404+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T09:07:42.430+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("659604dea286dd2c237b3fcf")
+2024-01-04T09:07:55.495+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T09:07:55.702+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T09:07:55.733+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("659604eb84cabd01a2e3201d")
+2024-01-04T09:09:47.261+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T09:09:47.419+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T09:09:47.443+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("6596055ba9b1b19c9fd609d0")
+2024-01-04T10:05:15.687+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T10:05:15.846+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T10:05:15.873+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("6596125bd3e93856657f3182")
+2024-01-04T10:07:21.255+0800	INFO	demo3/main.go:35	hello world
+2024-01-04T10:07:21.423+0800	INFO	demo3/main.go:55	Connected to MongoDB!
+2024-01-04T10:07:21.447+0800	INFO	demo3/main.go:73	Inserted a single document: ObjectID("659612d98fe1d3bb7444acc9")
+2024-01-05T13:35:49.378+0800	INFO	demo3.1/main.go:29	解析失败not found error correction level and mask
+2024-01-05T13:40:08.923+0800	INFO	demo3.1/main.go:29	解析失败not found error correction level and mask
+2024-01-05T13:45:25.782+0800	INFO	demo3.1/main.go:30	解析失败not found error correction level and mask
+2024-01-05T13:45:39.191+0800	INFO	demo3.1/main.go:30	解析失败not found error correction level and mask
+2024-01-12T09:28:15.160+0800	INFO	demo3.2/main.go:28	err: ipmi dev file not opened
+2024-01-12T09:28:54.836+0800	INFO	demo3.2/main.go:29	err: ipmi dev file not opened
+2024-01-12T10:02:13.676+0800	INFO	demo3.2/main.go:29	err: ipmi dev file not opened
+2024-01-16T09:30:30.418+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:58672->120.46.150.226:623: i/o timeout
+2024-01-16T09:30:59.566+0800	INFO	demo3.2/main.go:115	err: ActivateSession failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:56687->120.46.150.226:623: i/o timeout
+2024-01-16T13:10:15.738+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:53039->120.46.150.226:623: i/o timeout
+2024-01-16T13:20:25.134+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:64337->120.46.150.226:623: i/o timeout
+2024-01-16T13:21:11.683+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:61611->120.46.150.226:623: i/o timeout
+2024-01-16T13:29:53.313+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:59015->120.46.150.226:623: i/o timeout
+2024-01-16T13:44:10.789+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:60211->120.46.150.226:623: i/o timeout
+2024-01-16T13:48:39.222+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:52068->120.46.150.226:623: i/o timeout
+2024-01-16T13:54:36.686+0800	INFO	demo3.2/main.go:115	err: SetSessionPrivilegeLevel failed, err: ipmiRes CompletaionCode (0x81) is not normal: Requested level exceeds Channel and/or User Privilege Limit
+2024-01-16T13:55:34.041+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:64714->120.46.150.226:623: i/o timeout
+2024-01-16T13:57:17.703+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:60084->120.46.150.226:623: i/o timeout
+2024-01-16T14:14:18.185+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:56756->120.46.150.226:623: i/o timeout
+2024-01-16T14:18:20.014+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:53331->120.46.150.226:623: i/o timeout
+2024-01-16T14:24:00.598+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:50785->120.46.150.226:623: i/o timeout
+2024-01-16T14:37:49.387+0800	INFO	demo3.2/main.go:115	err: ipmi dev file not opened
+2024-01-16T14:38:42.809+0800	INFO	demo3.2/main.go:115	err: ActivateSession failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:60591->120.46.150.226:623: i/o timeout
+2024-01-16T14:40:09.397+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:56449->120.46.150.226:623: i/o timeout
+2024-01-16T14:50:14.292+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:49956->120.46.150.226:623: i/o timeout
+2024-01-16T14:53:28.798+0800	INFO	demo3.2/main.go:115	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:62456->120.46.150.226:623: i/o timeout
+2024-01-16T15:13:43.836+0800	INFO	demo3.2/main.go:116	err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:64573->120.46.150.226:623: i/o timeout
+2024-01-16T16:21:01.993+0800	INFO	demo3.2/main.go:116	err: cmd: Get Channel Authentication Capabilities failed, err: client udp exchange msg failed, err: read from conn failed, err: read udp 172.17.103.111:52472->120.46.150.226:623: i/o timeout

+ 100 - 0
main.go

@@ -0,0 +1,100 @@
+package main
+
+import (
+	"context"
+	"encoding/json"
+	"fmt"
+	"go.mongodb.org/mongo-driver/mongo"
+	"go.mongodb.org/mongo-driver/mongo/options"
+	"go.uber.org/zap"
+	"log"
+	"os"
+)
+
+// 创建一个文件用于日志输出
+func logFile() *os.File {
+	file, err := os.Create("logfile.log")
+	if err != nil {
+		log.Fatal("Error creating log file: ", err)
+	}
+	return file
+}
+
+func main() {
+
+	zap.S().Infof("hello world")
+
+	// 设置MongoDB连接选项
+	clientOptions := options.Client().ApplyURI("mongodb://120.46.150.226:27277").SetAuth(options.Credential{
+		Username: "root",
+		Password: "root",
+	})
+
+	// 连接到MongoDB
+	client, err := mongo.Connect(context.TODO(), clientOptions)
+	if err != nil {
+		zap.S().Infof("err: %v", err)
+	}
+
+	// 检查连接
+	err = client.Ping(context.TODO(), nil)
+	if err != nil {
+		zap.S().Infof("err: %v", err)
+	}
+
+	zap.S().Infof("Connected to MongoDB!")
+
+	// 获取对特定数据库和集合的引用
+	collection := client.Database("mydatabase").Collection("mycollection")
+
+	collection.Indexes()
+	// 插入文档
+	insertResult, err := collection.InsertOne(context.TODO(), map[string]interface{}{
+		"title":       "MongoDB 教程",
+		"description": "MongoDB 是一个 Nosql 数据库",
+		"by":          "菜鸟教程",
+		"url":         "http://www.runoob.com",
+		"tags":        "['mongodb', 'database', 'NoSQL']",
+		"likes":       100,
+	})
+	if err != nil {
+		zap.S().Infof("err: %v", err)
+	}
+
+	zap.S().Infof("Inserted a single document: %v", insertResult.InsertedID)
+
+	// 查询文档
+	re, err := collection.Find(context.TODO(), map[string]interface{}{"title": "MongoDB 教程"}, options.Find().SetLimit(10).SetSkip(1).SetSort(1))
+	if err != nil {
+		zap.S().Infof("err: %v", err)
+	}
+	marshal, err := json.Marshal(re)
+	fmt.Println("Found document:", string(marshal))
+
+	/*// 更新文档
+	updateResult, err := collection.UpdateOne(
+		context.TODO(),
+		map[string]interface{}{"title": "MongoDB 教程"},
+		marshal,
+	)
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	fmt.Printf("Matched %v document and modified %v document(s)\n", updateResult.MatchedCount, updateResult.ModifiedCount)*/
+
+	// 删除文档
+	deleteResult, err := collection.DeleteMany(context.TODO(), map[string]interface{}{"title": "MongoDB 教程"})
+	if err != nil {
+		log.Fatal(err)
+	}
+
+	fmt.Printf("Deleted %v document\n", deleteResult.DeletedCount)
+
+	// 断开连接
+	err = client.Disconnect(context.TODO())
+	if err != nil {
+		zap.S().Infof("err: %v", err)
+	}
+	fmt.Println("Connection to MongoDB closed.")
+}

+ 16 - 0
pkg/log.go

@@ -0,0 +1,16 @@
+package pkg
+
+import "go.uber.org/zap"
+
+func InitLog() *zap.Logger {
+
+	config := zap.NewDevelopmentConfig()
+	config.OutputPaths = append(config.OutputPaths, "logfile.log")
+	logger, err := config.Build()
+	if err != nil {
+		panic("Error creating config: " + err.Error())
+	}
+
+	zap.ReplaceGlobals(logger)
+	return logger
+}

BIN
qr.png


+ 81 - 0
rabbitmq/Consume/mainSimpleRecieve.go

@@ -0,0 +1,81 @@
+package main
+
+import (
+	"demo3/rabbitmq/RabbitMQ"
+	"encoding/json"
+	"fmt"
+	"log"
+	"time"
+)
+
+//func main() {
+//	rabbitmq := RabbitMQ.NewRabbitMQ("amqp://lxz:lxz664278@106.54.33.152:5672/lxz")
+//	var qc RabbitMQ.QueueConfig
+//	rabbitmq.NewExchange(context.Background(), "ra", "direct",
+//		qc.Durable())
+//	rabbitmq.NewQueue(context.Background(), "qq")
+//	rabbitmq.NewQueue(context.Background(), "qw")
+//	rabbitmq.QueueBind("qq", "cc", "ra")
+//	rabbitmq.QueueBind("qw", "aa", "ra")
+//	M, _ := rabbitmq.Consume("qw", "")
+//	for {
+//		select {
+//		case msg := <-M:
+//			type Message struct {
+//				Id     string `json:"id"`
+//				Method string `json:"method"`
+//				Body   []byte `json:"body"`
+//			}
+//			var m Message
+//			json.Unmarshal(msg.Body, &m)
+//			fmt.Println(m.Id, string(m.Body))
+//		}
+//	}
+//}
+
+func main() {
+
+	mq := RabbitMQ.NewRabbitMQ("amqp://lxz:lxz664278@106.54.33.152:5672/lxz")
+	mq.NewExchange("Server_exchange", "direct", mq.ExchangeConfig.Durable())
+	mq.NewQueue("Server_queue", mq.QueueConfig.Durable())
+	err := mq.QueueBind("Server_queue", "Server_exchange", "192.168.2.122")
+	if err != nil {
+		return
+	}
+	m, err := mq.Consume("Server", "", mq.AutoAck())
+	if err != nil {
+		panic(err)
+	}
+	// 消费消息
+	go func() {
+		for {
+			select {
+			case msg := <-m:
+				//顺序处理消息体
+				message, err := processMessage(msg.Body)
+				if err != nil {
+					continue
+				}
+				//调用函数
+				fmt.Println(message)
+			}
+		}
+	}()
+	time.Sleep(time.Second)
+}
+
+type Message struct {
+	ID     string `json:"id"`
+	Method string `json:"method"`
+	Body   []byte `json:"body"`
+}
+
+func processMessage(msg []byte) (*Message, error) {
+	var message Message
+	err := json.Unmarshal(msg, &message)
+	if err != nil {
+		log.Printf("反序列化消息错误:%s\n", err)
+		return nil, err
+	}
+	return &message, nil
+}

+ 42 - 0
rabbitmq/Pub/mainSimlpePublish.go

@@ -0,0 +1,42 @@
+package main
+
+import (
+	"demo3/rabbitmq/RabbitMQ"
+	"fmt"
+)
+
+func main() {
+
+	rabbitmq := RabbitMQ.NewRabbitMQ("amqp://lxz:lxz664278@106.54.33.152:5672/lxz")
+
+	if rabbitmq.Conn == nil {
+		fmt.Println("rabbitmq is nil")
+	}
+	rabbitmq.Close()
+
+	if rabbitmq.Conn == nil {
+		fmt.Println("rabbitmq is nil")
+	}
+
+	if rabbitmq.Conn.IsClosed() {
+		fmt.Println("rabbitmq is closed")
+	}
+
+	//
+	//type Message struct {
+	//	Id     string `json:"id"`
+	//	Method string `json:"method"`
+	//	Body   []byte `json:"body"`
+	//}
+	//
+	//var msg = Message{
+	//	Id:     "1",
+	//	Method: "ra",
+	//	Body:   []byte(`{"name":"ra"}`),
+	//}
+	//for i := 1; i < 10; i++ {
+	//	msg.Id = strconv.Itoa(i)
+	//	m, _ := json.Marshal(msg)
+	//	rabbitmq.Pub(m, "Agent_Exchange", "192.168.2.122")
+	//}
+}

+ 158 - 0
rabbitmq/RabbitMQ/entity.go

@@ -0,0 +1,158 @@
+package RabbitMQ
+
+import "github.com/streadway/amqp"
+
+// rabbitMQ结构体
+type RabbitMQ struct {
+	Conn             *amqp.Connection
+	ConsumerChannel  *amqp.Channel
+	PublisherChannel *amqp.Channel
+	QueueConfig      QueueConfig
+	ExchangeConfig   ExchangeConfig
+	Consumer
+	Publisher
+}
+
+type Opt func()
+
+type Consumer struct {
+	autoAck   bool       //是否自动应答
+	exclusive bool       //是否独有
+	noLocal   bool       // //设置为true,表示 不能将同一个Conenction中生产者发送的消息传递给这个Connection中 的消费者
+	noWait    bool       //列是否阻塞
+	args      amqp.Table // 额外的属性
+}
+
+// AutoAck 自动应答
+func (c *Consumer) AutoAck() Opt {
+	return func() {
+		c.autoAck = true
+	}
+}
+
+// Exclusive 独有
+func (c *Consumer) Exclusive() Opt {
+	return func() {
+		c.exclusive = true
+	}
+}
+
+// NoLocal 设置为true,表示不能将同一个Conenction中生产者发送的消息传递给这个Connection中的消费者
+func (c *Consumer) NoLocal() Opt {
+	return func() {
+		c.noLocal = true
+	}
+}
+
+// NoWait 是否阻塞
+func (c *Consumer) NoWait() Opt {
+	return func() {
+		c.noWait = true
+	}
+}
+
+type Publisher struct {
+	mandatory bool //
+	immediate bool //
+}
+
+// Mandatory  是否将无法路由到任何队列的消息返回
+func (p *Publisher) Mandatory() Opt {
+	return func() {
+		p.mandatory = true
+	}
+}
+
+// Immediate 当exchange发送消息到队列后发现队列上没有消费者,则会把消息返还给发送者
+func (p *Publisher) Immediate() Opt {
+	return func() {
+		p.immediate = true
+	}
+}
+
+// 配置
+type QueueConfig struct {
+	durable    bool       // 是否持久化
+	autoDelete bool       // 是否自动删除
+	exclusive  bool       // 是否独占连接
+	noWait     bool       // 是否阻塞处理
+	args       amqp.Table // 额外的属性
+}
+
+// Durable 队列持久化
+func (c *QueueConfig) Durable() Opt {
+	return func() {
+		c.durable = true
+	}
+}
+
+// AutoDelete 队列自动删除
+func (c *QueueConfig) AutoDelete() Opt {
+	return func() {
+		c.autoDelete = true
+	}
+}
+
+// Exclusive 队列独占连接
+func (c *QueueConfig) Exclusive() Opt {
+	return func() {
+		c.exclusive = true
+	}
+}
+
+// NoWait 是否阻塞
+func (c *QueueConfig) NoWait() Opt {
+	return func() {
+		c.noWait = true
+	}
+}
+
+// Args 额外的属性
+func (c *QueueConfig) Args(args amqp.Table) Opt {
+	return func() {
+		c.args = args
+	}
+}
+
+type ExchangeConfig struct {
+	durable    bool       //是否持久化
+	autoDelete bool       //是否自动删除
+	internal   bool       // 是否内部处理
+	noWait     bool       //是否阻塞处理
+	args       amqp.Table //额外的属性
+}
+
+// Durable 交换机持久化
+func (c ExchangeConfig) Durable() Opt {
+	return func() {
+		c.durable = true
+	}
+}
+
+// AutoDelete 交换机自动删除
+func (c *ExchangeConfig) AutoDelete() Opt {
+	return func() {
+		c.autoDelete = true
+	}
+}
+
+// Internal 是否内部处理
+func (c *ExchangeConfig) Internal() Opt {
+	return func() {
+		c.internal = true
+	}
+}
+
+// NoWait 是否阻塞
+func (c *ExchangeConfig) NoWait() Opt {
+	return func() {
+		c.noWait = true
+	}
+}
+
+// Args 额外的属性
+func (c *ExchangeConfig) Args(args amqp.Table) Opt {
+	return func() {
+		c.args = args
+	}
+}

+ 127 - 0
rabbitmq/RabbitMQ/rabitmq.go

@@ -0,0 +1,127 @@
+package RabbitMQ
+
+import (
+	"github.com/streadway/amqp"
+	"log"
+)
+
+func NewRabbitMQ(MQUrl string) RabbitMQ {
+	var err error
+	//创建链接
+	conn, err := amqp.Dial(MQUrl)
+	if err != nil {
+		log.Printf("Error: %v\n", err)
+		panic(err)
+	}
+	//创建RabbitMQ实例
+	rabbitmq := RabbitMQ{
+		Conn: conn,
+	}
+	//获取channel
+	rabbitmq.ConsumerChannel, err = rabbitmq.Conn.Channel()
+	if err != nil {
+		log.Printf("Error: %v\n", err)
+		panic(err)
+	}
+	rabbitmq.PublisherChannel, err = rabbitmq.Conn.Channel()
+	if err != nil {
+		log.Printf("Error: %v\n", err)
+		panic(err)
+	}
+	return rabbitmq
+}
+
+// NewQueue 新建队列
+func (r *RabbitMQ) NewQueue(QueueName string, opts ...Opt) {
+
+	for _, opt := range opts {
+		opt()
+	}
+	_, err := r.Channel.QueueDeclare(
+		QueueName,
+		r.QueueConfig.durable,
+		r.QueueConfig.autoDelete,
+		r.QueueConfig.exclusive,
+		r.QueueConfig.noWait,
+		r.QueueConfig.args,
+	)
+	if err != nil {
+		log.Println(err)
+	}
+}
+
+// NewExchange 新建交换机
+func (r *RabbitMQ) NewExchange(Exchange string, kind string, opts ...Opt) {
+	for _, opt := range opts {
+		opt()
+	}
+	//1.申请交换机
+	err := r.Channel.ExchangeDeclare(
+		//交换机名
+		Exchange,
+		//交换机类型
+		kind,
+		//是否持久化
+		r.ExchangeConfig.durable,
+		//是否自动删除
+		r.ExchangeConfig.autoDelete,
+		//是否具有排他性
+		r.ExchangeConfig.internal,
+		//是否阻塞处理
+		r.ExchangeConfig.noWait,
+		//额外的属性
+		r.ExchangeConfig.args,
+	)
+	if err != nil {
+		log.Println(err)
+		panic(err)
+	}
+}
+
+// Close 关闭channel和connection
+func (r *RabbitMQ) Close() {
+	_ = r.Channel.Close()
+	_ = r.Conn.Close()
+}
+
+func (r *RabbitMQ) QueueBind(QueueName, Exchange, Key string, opts ...Opt) error {
+
+	for _, opt := range opts {
+		opt()
+	}
+	return r.Channel.QueueBind(QueueName, Key, Exchange, r.QueueConfig.noWait, r.QueueConfig.args)
+}
+
+func (r *RabbitMQ) Consume(queueName, consumer string, opts ...Opt) (<-chan amqp.Delivery, error) {
+	for _, opt := range opts {
+		opt()
+	}
+	return r.Channel.Consume(
+		queueName, // queue
+		//用来区分多个消费者
+		consumer, // consumer
+		//是否自动应答
+		r.autoAck, // auto-ack
+		//是否独有
+		r.exclusive, // exclusive
+		//设置为true,表示 不能将同一个Conenction中生产者发送的消息传递给这个Connection中 的消费者
+		r.noLocal, // no-local
+		//列是否阻塞
+		r.noWait, // no-wait
+		r.args,   // args
+	)
+
+}
+
+func (r *RabbitMQ) Pub(msg []byte, exchange, key string) error {
+	return r.Channel.Publish(
+		exchange,
+		key,
+		r.mandatory,
+		r.immediate,
+		amqp.Publishing{
+			ContentType: "text/json",
+			Body:        msg,
+		},
+	)
+}

+ 4 - 0
rabbitmq/go-rabbitmq/main.go

@@ -0,0 +1,4 @@
+package main
+
+func main() {
+}

+ 141 - 0
rabbitmq/go-rabbitmq/ra/test.go

@@ -0,0 +1,141 @@
+package ra
+
+import (
+	"context"
+	"encoding/json"
+	"errors"
+	rabbitmq "github.com/wagslane/go-rabbitmq"
+	"log"
+)
+
+type Message struct {
+	ID     string `json:"id"`
+	Method string `json:"method"`
+	Body   []byte `json:"body"`
+}
+
+var FuncMap = make(map[string]func(message *Message))
+
+var MQUrl = "amqp://lxz:lxz664278@106.54.33.152:5672/lxz"
+var ExchangeName = "Agent_exchange"
+var QueueName = "Agent_queue"
+var RoutingKey = "192.168.2.122"
+
+var ResultExchangeName = "Server_exchange"
+
+func InitMQ() {
+
+	conn, err := rabbitmq.NewConn(
+		MQUrl,
+		rabbitmq.WithConnectionOptionsLogging,
+	)
+	if err != nil {
+		panic(err)
+	}
+
+	consumer, err := rabbitmq.NewConsumer(
+		conn,
+		QueueName,
+		rabbitmq.WithConsumerOptionsRoutingKey(RoutingKey),
+		rabbitmq.WithConsumerOptionsExchangeDeclare,
+		rabbitmq.WithConsumerOptionsExchangeName(ExchangeName),
+		rabbitmq.WithConsumerOptionsExchangeKind("direct"),
+	)
+	if err != nil {
+		InitMQ()
+		return
+	}
+
+	err = consumer.Run(func(d rabbitmq.Delivery) (action rabbitmq.Action) {
+		// 处理消息
+		message, err := processMessage(d.Body)
+		if err != nil {
+			return
+		}
+		log.Println("消息:", message)
+		//调用函数
+		if _, ok := FuncMap[message.Method]; !ok {
+			return
+		}
+		FuncMap[message.Method](message)
+		return rabbitmq.Ack
+	})
+	if err != nil {
+		log.Println("消费消息错误:", err)
+		InitMQ()
+	}
+	return
+}
+
+func processMessage(msg []byte) (*Message, error) {
+	var message Message
+	err := json.Unmarshal(msg, &message)
+	if err != nil {
+		log.Printf("反序列化消息错误:%s\n", err)
+		return nil, err
+	}
+	return &message, nil
+}
+
+func newPublisher(conn *rabbitmq.Conn) (*rabbitmq.Publisher, error) {
+	pub, err := rabbitmq.NewPublisher(
+		conn,
+	)
+	if err != nil {
+		return nil, err
+	}
+
+	pub.NotifyReturn(func(r rabbitmq.Return) {
+		log.Printf("message returned from server: %s", string(r.Body))
+	})
+
+	pub.NotifyPublish(func(c rabbitmq.Confirmation) {
+		log.Printf("message confirmed from server. tag: %v, ack: %v", c.DeliveryTag, c.Ack)
+	})
+	return pub, nil
+}
+
+func SendMessage(message Message, key string) error {
+
+	conn, err := rabbitmq.NewConn(
+		MQUrl,
+		rabbitmq.WithConnectionOptionsLogging,
+	)
+	defer conn.Close()
+
+	pub, err := newPublisher(conn)
+	if err != nil {
+		return err
+	}
+	marshal, err := json.Marshal(message)
+	if err != nil {
+		log.Printf("序列化消息错误: %s\n", err)
+		return err
+	}
+	confirms, err := pub.PublishWithDeferredConfirmWithContext(
+		context.Background(),
+		marshal,
+		[]string{key},
+		rabbitmq.WithPublishOptionsContentType("application/json"),
+		rabbitmq.WithPublishOptionsPriority(0),
+		rabbitmq.WithPublishOptionsExpiration("60000"),
+		rabbitmq.WithPublishOptionsExchange(ResultExchangeName),
+	)
+	if err != nil {
+		return err
+	}
+	if len(confirms) == 0 || confirms[0] == nil {
+		log.Println("no confirms received")
+		return errors.New("no confirmations received")
+	}
+
+	ok, err := confirms[0].WaitContext(context.Background())
+	if err != nil {
+		return err
+	}
+	if !ok {
+		log.Println("message was nack'd")
+		return errors.New("message was nack'd")
+	}
+	return nil
+}

+ 7 - 0
uploads/auto/auto.ipxe

@@ -0,0 +1,7 @@
+#!ipxe
+dhcp net0
+
+set base-url http://192.168.14.128:8000/auto.ipxe #请替换为镜像所在的HTTP文件服务器地址
+kernel ${base-url}/images/pxeboot/vmlinuz initrd=initrd.img inst.repo=${base-url} ip=dhcp
+initrd ${base-url}/images/pxeboot/initrd.img
+boot