feat: init

This commit is contained in:
Rogee
2024-09-30 11:02:26 +08:00
parent 679759846b
commit 694dfd2a4f
90 changed files with 6046 additions and 15 deletions

24
cmd/proxy/proxy_linux.go Normal file
View File

@@ -0,0 +1,24 @@
package main
import (
"log"
"dyproxy/modules/proxy"
"github.com/spf13/cobra"
)
func main() {
cmd := &cobra.Command{
Use: "proxy",
Short: "serve proxy",
RunE: proxy.ServeE,
}
cmd.Flags().StringP("host", "H", "https://f.jdwan.com", "default post data to host")
cmd.Flags().BoolP("debug", "D", false, "debug mode")
cmd.Flags().IntP("duration", "d", 10, "fans fetch duration")
if err := cmd.Execute(); err != nil {
log.Fatal(err)
}
}