Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2021 Changes in this version + const HeaderSize + func ContextWithSessionContext(ctx context.Context, c SessionContext) context.Context + func Inverse(b []byte) []byte + type Account struct + Secret []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (a *Account) Equals(another protocol.Account) bool + func (m *Account) GetSecret() []byte + func (m *Account) Reset() + func (m *Account) String() string + func (m *Account) XXX_DiscardUnknown() + func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Account) XXX_Merge(src proto.Message) + func (m *Account) XXX_Size() int + func (m *Account) XXX_Unmarshal(b []byte) error + 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 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ClientConfig) Descriptor() ([]byte, []int) + func (*ClientConfig) ProtoMessage() + func (m *ClientConfig) Reset() + func (m *ClientConfig) String() string + func (m *ClientConfig) XXX_DiscardUnknown() + func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientConfig) XXX_Merge(src proto.Message) + func (m *ClientConfig) XXX_Size() int + func (m *ClientConfig) XXX_Unmarshal(b []byte) error + 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 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerConfig) Descriptor() ([]byte, []int) + func (*ServerConfig) ProtoMessage() + func (m *ServerConfig) GetUser() []*protocol.User + func (m *ServerConfig) Reset() + func (m *ServerConfig) String() string + func (m *ServerConfig) XXX_DiscardUnknown() + func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerConfig) XXX_Merge(src proto.Message) + func (m *ServerConfig) XXX_Size() int + func (m *ServerConfig) XXX_Unmarshal(b []byte) error + type SessionContext struct + ConnectionType [4]byte + DataCenterID uint16 + func DefaultSessionContext() SessionContext + func SessionContextFromContext(ctx context.Context) SessionContext