import "v2ray.com/core/proxy/mtproto"
auth.go client.go config.go config.pb.go errors.generated.go mtproto.go server.go
const (
HeaderSize = 64
)
var File_proxy_mtproto_config_proto protoreflect.FileDescriptor
Inverse returns a new byte array. It is a sequence of bytes when the input is read from end to beginning.Inverse Visible for testing only.
type Account struct { Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
Deprecated: Use Account.ProtoReflect.Descriptor instead.
func (x *Account) ProtoReflect() protoreflect.Message
type Authentication struct { Header [HeaderSize]byte DecodingKey [32]byte EncodingKey [32]byte DecodingNonce [16]byte EncodingNonce [16]byte }
func NewAuthentication(sc SessionContext) *Authentication
func ReadAuthentication(reader io.Reader) (*Authentication, error)
func (a *Authentication) ApplySecret(b []byte)
func (a *Authentication) ConnectionType() [4]byte
func (a *Authentication) DataCenterID() uint16
type Client struct { }
type ClientConfig struct {
// contains filtered or unexported fields
}
func (*ClientConfig) Descriptor() ([]byte, []int)
Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
func (*ClientConfig) ProtoMessage()
func (x *ClientConfig) ProtoReflect() protoreflect.Message
func (x *ClientConfig) Reset()
func (x *ClientConfig) String() string
type Server struct {
// contains filtered or unexported fields
}
func (s *Server) Process(ctx context.Context, network net.Network, conn internet.Connection, dispatcher routing.Dispatcher) error
type ServerConfig struct { // User is a list of users that allowed to connect to this inbound. // Although this is a repeated field, only the first user is effective for // now. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*ServerConfig) Descriptor() ([]byte, []int)
Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
func (x *ServerConfig) GetUser() []*protocol.User
func (*ServerConfig) ProtoMessage()
func (x *ServerConfig) ProtoReflect() protoreflect.Message
func (x *ServerConfig) Reset()
func (x *ServerConfig) String() string
func DefaultSessionContext() SessionContext
func SessionContextFromContext(ctx context.Context) SessionContext
Package mtproto imports 25 packages (graph) and is imported by 7 packages. Updated 2020-10-15. Refresh now. Tools for package owners.