Versions in this module Expand all Collapse all v0 v0.3.1 Sep 22, 2015 Changes in this version + const DefaultBytesToCheck + var ErrGreedyHandler = errors.New("remaining handlers too greedy") + type Logger func(format string, v ...interface{}) + type Protocol interface + Check func(header []byte, hints []interface{}) (ok bool, needed int) + Handle func(c net.Conn) (net.Conn, error) + type ProtocolHandler Protocol + type Server struct + BytesToCheck int + DefaultProtocol Protocol + Logger Logger + Protocols []Protocol + func New() *Server + func (s *Server) AddHandler(p Protocol) + func (s *Server) AddHandlers(p ...Protocol) + func (s *Server) HandleConn(c net.Conn, hints []interface{}) error + func (s *Server) Serve(l net.Listener) error