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:
parent
5fc606ce9d
commit
4988b5ad9a
@ -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.
|
||||
|
@ -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"
|
||||
|
@ -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.
|
||||
|
@ -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:"-"`
|
||||
|
Loading…
Reference in New Issue
Block a user