PasswordAuth returns a functional option that sets PasswordHandler on the server.
(fn PasswordHandler)
| 8 | |
| 9 | // PasswordAuth returns a functional option that sets PasswordHandler on the server. |
| 10 | func PasswordAuth(fn PasswordHandler) Option { |
| 11 | return func(srv *Server) error { |
| 12 | srv.PasswordHandler = fn |
| 13 | return nil |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | // PublicKeyAuth returns a functional option that sets PublicKeyHandler on the server. |
| 18 | func PublicKeyAuth(fn PublicKeyHandler) Option { |
no outgoing calls
searching dependent graphs…