1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

update protbuf gen files

This commit is contained in:
Darien Raymond 2018-10-23 22:36:33 +02:00
parent 5fc606ce9d
commit 4988b5ad9a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
4 changed files with 14 additions and 10 deletions

View File

@ -1,12 +1,11 @@
package command
import (
"context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
"context"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -1,12 +1,11 @@
package command
import (
"context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
"context"
grpc "google.golang.org/grpc"
math "math"
core "v2ray.com/core"
protocol "v2ray.com/core/common/protocol"
serial "v2ray.com/core/common/serial"

View File

@ -1,12 +1,11 @@
package command
import (
"context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
"context"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -19,10 +19,13 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// AuthType is the authentication type of Socks proxy.
type AuthType int32
const (
AuthType_NO_AUTH AuthType = 0
// NO_AUTH is for anounymous authentication.
AuthType_NO_AUTH AuthType = 0
// PASSWORD is for username/password authentication.
AuthType_PASSWORD AuthType = 1
)
@ -44,6 +47,7 @@ func (AuthType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e86958e2cebd3303, []int{0}
}
// Account represents a Socks account.
type Account struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
@ -91,6 +95,7 @@ func (m *Account) GetPassword() string {
return ""
}
// ServerConfig is the protobuf config for Socks server.
type ServerConfig struct {
AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"`
Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
@ -171,7 +176,9 @@ func (m *ServerConfig) GetUserLevel() uint32 {
return 0
}
// ClientConfig is the protobuf config for Socks client.
type ClientConfig struct {
// Sever is a list of Socks server addresses.
Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`