Versions in this module Expand all Collapse all v4 v4.88.0 Jul 26, 2021 Changes in this version + const HeaderSize + var File_proxy_mtproto_config_proto protoreflect.FileDescriptor + func ContextWithSessionContext(ctx context.Context, c SessionContext) context.Context + func Inverse(b []byte) []byte + type Account struct + Secret []byte + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (a *Account) Equals(another protocol.Account) bool + func (x *Account) GetSecret() []byte + func (x *Account) ProtoReflect() protoreflect.Message + func (x *Account) Reset() + func (x *Account) String() string + type Authentication struct + DecodingKey [32]byte + DecodingNonce [16]byte + EncodingKey [32]byte + EncodingNonce [16]byte + Header [HeaderSize]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 + func NewClient(ctx context.Context, config *ClientConfig) (*Client, error) + func (c *Client) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error + type ClientConfig struct + func (*ClientConfig) Descriptor() ([]byte, []int) + func (*ClientConfig) ProtoMessage() + func (x *ClientConfig) ProtoReflect() protoreflect.Message + func (x *ClientConfig) Reset() + func (x *ClientConfig) String() string + type Server struct + func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) + func (s *Server) Network() []net.Network + func (s *Server) Process(ctx context.Context, network net.Network, conn internet.Connection, ...) error + type ServerConfig struct + User []*protocol.User + func (*ServerConfig) Descriptor() ([]byte, []int) + func (*ServerConfig) ProtoMessage() + func (x *ServerConfig) GetUser() []*protocol.User + func (x *ServerConfig) ProtoReflect() protoreflect.Message + func (x *ServerConfig) Reset() + func (x *ServerConfig) String() string + type SessionContext struct + ConnectionType [4]byte + DataCenterID uint16 + func DefaultSessionContext() SessionContext + func SessionContextFromContext(ctx context.Context) SessionContext Other modules containing this package github.com/maintell/v2ray-core