func (ah *authHandshaker) GetDescription(ctx context.Context, addr address.Address, conn driver.Connection) (description.Server, error) {
	if ah.wrapped != nil {
		return ah.wrapped.GetDescription(ctx, addr, conn)
	}

	desc, err := operation.NewIsMaster().
		AppName(ah.options.AppName).
		Compressors(ah.options.Compressors).
		SASLSupportedMechs(ah.options.DBUser).
		GetDescription(ctx, addr, conn)
	if err != nil {
		return description.Server{}, newAuthError("handshake failure", err)
	}
	return desc, nil
}
// GetDescription performs an isMaster to retrieve the initial description for conn.
GetDescription performs an isMaster to retrieve the initial description for conn.
// GetDescription performs an isMaster to retrieve the initial description for conn .
func (ah *authHandshaker) GetDescription(ctx context.Context, addr address.Address, conn driver.Connection) (description.Server, error) {
	if ah.wrapped != nil {
		return ah.wrapped.GetDescription(ctx, addr, conn)
	}
	desc, err := operation.NewIsMaster().
		AppName(ah.options.AppName).
		Compressors(ah.options.Compressors).
		SASLSupportedMechs(ah.options.DBUser).
		GetDescription(ctx, addr, conn)
	if err != nil {
		return description.Server{}, newAuthError("handshake failure", err)
	}
	return desc, nil
}
func ( ah * authHandshaker ) GetDescription ( ctx context . Context , addr address . Address , conn driver . Connection ) ( description . Server , error ) { if ah . wrapped != nil { return ah . wrapped . GetDescription ( ctx , addr , conn ) } desc , err := operation . NewIsMaster ( ) . AppName ( ah . options . AppName ) . Compressors ( ah . options . Compressors ) . SASLSupportedMechs ( ah . options . DBUser ) . GetDescription ( ctx , addr , conn ) if err != nil { return description . Server { } , newAuthError ( " " , err ) } return desc , nil }
GetDescription performs an isMaster to retrieve the initial description for conn.
GetDescription performs an isMaster to retrieve the initial description for conn .