github.com/kaydxh/golang@v0.0.131/pkg/file-transfer/ft.proto (about) 1 syntax = "proto3"; 2 3 package go.pkg.filetransfer; 4 import "google/protobuf/duration.proto"; 5 6 option go_package = "github.com/kaydxh/go.pkg.filetransfer;filetransfer"; 7 8 message Ft { 9 bool enabled = 1; 10 google.protobuf.Duration download_timeout = 2; 11 google.protobuf.Duration upload_timeout = 3; 12 uint32 retry_times = 4; 13 google.protobuf.Duration retry_interval = 5; 14 15 // 当有多个代理地址时,代理模式, use proxy mode 16 LoadBalanceMode load_balance_mode = 10; 17 enum LoadBalanceMode { 18 load_balance_mode_first = 0; 19 load_balance_mode_random = 1; 20 } 21 22 repeated Proxy proxies = 11; 23 message Proxy { 24 // target_host即将url中的域名地址改为target_host进行转发, 25 // proxy_url 第三方代理代理进行下载, 如socks5://127.0.0.1:8080 26 // proxy_host 为proxy_url中的host地址,如果设置了,将代替url中的host 27 28 // target_addr和target_url都设置值的情况下,优先使用target_addr 29 // reset dns to target_addr in url, 30 string target_host = 1; 31 32 // reset url to target url 33 string proxy_url = 2; 34 string proxy_host = 3; 35 } 36 }