Documentation ¶
Index ¶
- Constants
- Variables
- func Key(password []byte, keySize int) []byte
- type Handler
- type Method
- type NoneMethod
- type NoneService
- func (s *NoneService) Name() string
- func (s *NoneService) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error
- func (s *NoneService) NewError(ctx context.Context, err error)
- func (s *NoneService) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error
- func (s *NoneService) Password() string
- func (s *NoneService) WriteIsThreadUnsafe()
- type ServerConnError
- type ServerPacketError
- type Service
Constants ¶
View Source
const MethodNone = "none"
Variables ¶
View Source
var ( ErrBadKey = E.New("bad key") ErrMissingPassword = E.New("missing password") )
Functions ¶
Types ¶
type Handler ¶
type Handler interface { N.TCPConnectionHandler N.UDPConnectionHandler E.Handler }
type Method ¶
type NoneMethod ¶
type NoneMethod struct{}
func (*NoneMethod) DialEarlyConn ¶
func (*NoneMethod) DialPacketConn ¶
func (m *NoneMethod) DialPacketConn(conn net.Conn) N.NetPacketConn
func (*NoneMethod) Name ¶
func (m *NoneMethod) Name() string
type NoneService ¶
type NoneService struct {
// contains filtered or unexported fields
}
func (*NoneService) Name ¶
func (s *NoneService) Name() string
func (*NoneService) NewConnection ¶
func (*NoneService) NewPacket ¶
func (s *NoneService) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata M.Metadata) error
func (*NoneService) Password ¶
func (s *NoneService) Password() string
func (*NoneService) WriteIsThreadUnsafe ¶
func (s *NoneService) WriteIsThreadUnsafe()
type ServerConnError ¶
func (*ServerConnError) Close ¶
func (e *ServerConnError) Close() error
func (*ServerConnError) Error ¶
func (e *ServerConnError) Error() string
func (*ServerConnError) Unwrap ¶
func (e *ServerConnError) Unwrap() error
type ServerPacketError ¶
func (*ServerPacketError) Error ¶
func (e *ServerPacketError) Error() string
func (*ServerPacketError) Unwrap ¶
func (e *ServerPacketError) Unwrap() error
type Service ¶
type Service interface { Name() string Password() string N.TCPConnectionHandler N.UDPHandler E.Handler }
func NewNoneService ¶
Click to show internal directories.
Click to hide internal directories.