const NoAuth …
const noAcceptable …
const UserPassAuth …
const userAuthVersion …
const authSuccess …
const authFailure …
var UserAuthFailed …
var NoSupportedAuth …
type AuthContext …
type Authenticator …
type NoAuthAuthenticator …
func (a NoAuthAuthenticator) GetCode() uint8 { … }
func (a NoAuthAuthenticator) Authenticate(reader io.Reader, writer io.Writer) (*AuthContext, error) { … }
type UserPassAuthenticator …
func (a UserPassAuthenticator) GetCode() uint8 { … }
func (a UserPassAuthenticator) Authenticate(reader io.Reader, writer io.Writer) (*AuthContext, error) { … }
func (s *Server) authenticate(conn io.Writer, bufConn io.Reader) (*AuthContext, error) { … }
func noAcceptableAuth(conn io.Writer) error { … }
func readMethods(r io.Reader) ([]byte, error) { … }