mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-03 08:46:47 -05:00
remove generate package comments in .pb.go files.
This commit is contained in:
parent
6c39ce0714
commit
c9a421fba6
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/app/dispatcher/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package dispatcher is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/app/dispatcher/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package dispatcher
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/app/dns/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package dns is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/app/dns/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package dns
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,17 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/app/proxyman/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package proxyman is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/app/proxyman/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
InboundConfig
|
||||
OutboundConfig
|
||||
*/
|
||||
package proxyman
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,19 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/app/router/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package router is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/app/router/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Domain
|
||||
CIDR
|
||||
RoutingRule
|
||||
Config
|
||||
*/
|
||||
package router
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/app/web/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package web is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/app/web/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
FileServer
|
||||
Server
|
||||
Config
|
||||
*/
|
||||
package web
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/log/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package log is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/common/log/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package log
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,22 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/net/address.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package net is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/common/net/address.proto
|
||||
v2ray.com/core/common/net/destination.proto
|
||||
v2ray.com/core/common/net/network.proto
|
||||
v2ray.com/core/common/net/port.proto
|
||||
|
||||
It has these top-level messages:
|
||||
IPOrDomain
|
||||
Endpoint
|
||||
NetworkList
|
||||
PortRange
|
||||
*/
|
||||
package net
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/net/destination.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package net
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/net/network.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package net
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/net/port.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package net
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,22 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/protocol/command.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package protocol is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/common/protocol/command.proto
|
||||
v2ray.com/core/common/protocol/headers.proto
|
||||
v2ray.com/core/common/protocol/server_spec.proto
|
||||
v2ray.com/core/common/protocol/user.proto
|
||||
|
||||
It has these top-level messages:
|
||||
AlternativeOutboundConfig
|
||||
SecurityConfig
|
||||
ServerEndpoint
|
||||
User
|
||||
*/
|
||||
package protocol
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/protocol/headers.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package protocol
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/protocol/server_spec.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package protocol
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,7 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/protocol/user.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
package protocol
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/common/serial/typed_message.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package serial is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/common/serial/typed_message.proto
|
||||
|
||||
It has these top-level messages:
|
||||
TypedMessage
|
||||
*/
|
||||
package serial
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
18
config.pb.go
18
config.pb.go
@ -1,21 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package core is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
AllocationStrategyConcurrency
|
||||
AllocationStrategyRefresh
|
||||
AllocationStrategy
|
||||
InboundConnectionConfig
|
||||
OutboundConnectionConfig
|
||||
Config
|
||||
*/
|
||||
package core
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/blackhole/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package blackhole is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/blackhole/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
NoneResponse
|
||||
HTTPResponse
|
||||
Config
|
||||
*/
|
||||
package blackhole
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/dokodemo/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package dokodemo is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/dokodemo/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package dokodemo
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/freedom/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package freedom is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/freedom/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package freedom
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,17 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/http/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package http is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/http/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
ServerConfig
|
||||
ClientConfig
|
||||
*/
|
||||
package http
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/shadowsocks/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package shadowsocks is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/shadowsocks/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Account
|
||||
ServerConfig
|
||||
ClientConfig
|
||||
*/
|
||||
package shadowsocks
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/socks/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package socks is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/socks/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Account
|
||||
ServerConfig
|
||||
ClientConfig
|
||||
*/
|
||||
package socks
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/vmess/account.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package vmess is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/vmess/account.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Account
|
||||
*/
|
||||
package vmess
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/vmess/inbound/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package inbound is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/vmess/inbound/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
DetourConfig
|
||||
DefaultConfig
|
||||
Config
|
||||
*/
|
||||
package inbound
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/proxy/vmess/outbound/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package outbound is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/proxy/vmess/outbound/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package outbound
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -3,7 +3,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@ -54,4 +56,35 @@ func main() {
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
|
||||
err := filepath.Walk(filepath.Join(gosrc, "v2ray.com", "core"), func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return err
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !strings.HasSuffix(info.Name(), ".pb.go") {
|
||||
return nil
|
||||
}
|
||||
|
||||
content, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
pos := bytes.Index(content, []byte("\npackage"))
|
||||
if pos > 0 {
|
||||
if err := ioutil.WriteFile(path, content[pos+1:], info.Mode()); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/tools/geoip/geoip.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package geoip is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/tools/geoip/geoip.proto
|
||||
|
||||
It has these top-level messages:
|
||||
CountryIPRange
|
||||
*/
|
||||
package geoip
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package transport is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package transport
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,18 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package internet is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
NetworkSettings
|
||||
StreamConfig
|
||||
ProxyConfig
|
||||
*/
|
||||
package internet
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,22 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/headers/http/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package http is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/headers/http/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Header
|
||||
Version
|
||||
Method
|
||||
RequestConfig
|
||||
Status
|
||||
ResponseConfig
|
||||
Config
|
||||
*/
|
||||
package http
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/headers/noop/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package noop is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/headers/noop/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package noop
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/headers/srtp/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package srtp is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/headers/srtp/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package srtp
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,16 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/headers/utp/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package utp is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/headers/utp/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Config
|
||||
*/
|
||||
package utp
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,23 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/kcp/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package kcp is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/kcp/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
MTU
|
||||
TTI
|
||||
UplinkCapacity
|
||||
DownlinkCapacity
|
||||
WriteBuffer
|
||||
ReadBuffer
|
||||
ConnectionReuse
|
||||
Config
|
||||
*/
|
||||
package kcp
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,17 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/tcp/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package tcp is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/tcp/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
ConnectionReuse
|
||||
Config
|
||||
*/
|
||||
package tcp
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,17 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/tls/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package tls is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/tls/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Certificate
|
||||
Config
|
||||
*/
|
||||
package tls
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
@ -1,17 +1,3 @@
|
||||
// Code generated by protoc-gen-go.
|
||||
// source: v2ray.com/core/transport/internet/websocket/config.proto
|
||||
// DO NOT EDIT!
|
||||
|
||||
/*
|
||||
Package websocket is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
v2ray.com/core/transport/internet/websocket/config.proto
|
||||
|
||||
It has these top-level messages:
|
||||
ConnectionReuse
|
||||
Config
|
||||
*/
|
||||
package websocket
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
|
Loading…
Reference in New Issue
Block a user