Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2021 Changes in this version + type Config struct + Default *DefaultConfig + Detour *DetourConfig + SecureEncryptionOnly bool + User []*protocol.User + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (c *Config) GetDefaultValue() *DefaultConfig + func (m *Config) GetDefault() *DefaultConfig + func (m *Config) GetDetour() *DetourConfig + func (m *Config) GetSecureEncryptionOnly() bool + func (m *Config) GetUser() []*protocol.User + func (m *Config) Reset() + func (m *Config) String() string + func (m *Config) XXX_DiscardUnknown() + func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Config) XXX_Merge(src proto.Message) + func (m *Config) XXX_Size() int + func (m *Config) XXX_Unmarshal(b []byte) error + type DefaultConfig struct + AlterId uint32 + Level uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DefaultConfig) Descriptor() ([]byte, []int) + func (*DefaultConfig) ProtoMessage() + func (m *DefaultConfig) GetAlterId() uint32 + func (m *DefaultConfig) GetLevel() uint32 + func (m *DefaultConfig) Reset() + func (m *DefaultConfig) String() string + func (m *DefaultConfig) XXX_DiscardUnknown() + func (m *DefaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DefaultConfig) XXX_Merge(src proto.Message) + func (m *DefaultConfig) XXX_Size() int + func (m *DefaultConfig) XXX_Unmarshal(b []byte) error + type DetourConfig struct + To string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DetourConfig) Descriptor() ([]byte, []int) + func (*DetourConfig) ProtoMessage() + func (m *DetourConfig) GetTo() string + func (m *DetourConfig) Reset() + func (m *DetourConfig) String() string + func (m *DetourConfig) XXX_DiscardUnknown() + func (m *DetourConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DetourConfig) XXX_Merge(src proto.Message) + func (m *DetourConfig) XXX_Size() int + func (m *DetourConfig) XXX_Unmarshal(b []byte) error + type Handler struct + func New(ctx context.Context, config *Config) (*Handler, error) + func (*Handler) Network() []net.Network + func (h *Handler) AddUser(ctx context.Context, user *protocol.MemoryUser) error + func (h *Handler) Close() error + func (h *Handler) GetUser(email string) *protocol.MemoryUser + func (h *Handler) Process(ctx context.Context, network net.Network, connection internet.Connection, ...) error + func (h *Handler) RemoveUser(ctx context.Context, email string) error